mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-10 12:47:30 +00:00
Imported using git-ubuntu import. Changelog parent: 65b7f7a10a9bd05c60185f5c282af1a4c4efff57 New changelog entries: * live-build/auto/config: Add basic ubuntu-touch enablement (based on patch from Oliver Grawert, for which thanks). * live-build/auto/config, live-build/ubuntu-touch: Copy a huge pile of customisation by Ricardo Salveti from lp:~phablet-team/touch-preview-images/ubuntu-build-phablet, which should be close to enough for the architecture-independent parts of ubuntu-touch builds.
20 lines
485 B
Bash
Executable File
20 lines
485 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
|
|
|
|
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
|