OpenCores
URL https://opencores.org/ocsvn/s80186/s80186/trunk

Subversion Repositories s80186

[/] [s80186/] [trunk/] [docker/] [dev/] [s80x86-dev] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 jamieiles
#!/bin/bash
2
set -e
3
/usr/sbin/addgroup --quiet --gid $S80X86_DEV_GID $S80X86_DEV_USER
4
/usr/sbin/adduser --quiet --home /home/$S80X86_DEV_USER --disabled-password --gecos $S80X86_DEV_USER --uid $S80X86_DEV_UID --gid $S80X86_DEV_GID --no-create-home $S80X86_DEV_USER
5
/usr/sbin/usermod --groups $S80X86_DEV_USER,adm,sudo $S80X86_DEV_USER
6
echo "%sudo   ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
7
if [ "$#" -ge 1 ]; then
8
    HOME=/home/$S80X86_DEV_USER exec /usr/bin/chpst -u :$S80X86_DEV_UID:$S80X86_DEV_GID /bin/bash -c "$*"
9
else
10
    HOME=/home/$S80X86_DEV_USER exec /usr/bin/chpst -u ${S80X86_DEV_USER}:${S80X86_DEV_USER}:adm:sudo /bin/bash
11
fi

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.