mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-08-08 07:14:08 +00:00
Imported using git-ubuntu import. Changelog parent: 10459a79f5f4d037176b838333cddfe99d5d6a47 New changelog entries: * add radio user (with UID 1001 (required by android)) to the default user creation for ubuntu-touch
21 lines
578 B
Bash
Executable File
21 lines
578 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
USER=phablet
|
|
UGID=32011
|
|
|
|
echo "I: creating default user $USER"
|
|
adduser --gecos $USER --disabled-login $USER --uid $UGID
|
|
|
|
echo "I: set user $USER password to $USER"
|
|
echo "$USER:$USER" | chpasswd
|
|
|
|
adduser --gecos system --no-create-home --disabled-login --disabled-password system --uid 1000
|
|
adduser --gecos radio --no-create-home --disabled-login --disabled-password radio --uid 1001
|
|
|
|
mkdir -p /home/$USER/Music
|
|
mkdir -p /home/$USER/Pictures
|
|
mkdir -p /home/$USER/Videos
|
|
mkdir -p /home/$USER/Downloads
|
|
mkdir -p /home/$USER/Documents
|
|
chown -R $UGID:$UGID /home/$USER
|