Oliver Grawert 8212680ba0 Import patches-unapplied version 2.166 to ubuntu/saucy-proposed
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
2013-07-25 09:23:15 +00:00

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