home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh -e
- #
- # rc.local
- #
- # This script is executed at the end of each multiuser runlevel.
- # Make sure that the script will "exit 0" on success or any other
- # value on error.
- #
- # In order to enable or disable this script just change the execution
- # bits.
- #
- # By default this script does nothing.
- #
- # Mac Life / Klaus.Franken@StrukturPunkt.de: Anpassungen für Mac Life Ubuntu
- # (c) 2009 Klaus.Franken@StrukturPunkt.de
-
- # Zeitzone
- mv /etc/localtime /etc/localtime.ORIG
- ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
-
- cat /etc/passwd > /tmp/LOG
- ls -la /home/ubuntu >> /tmp/LOG
-
- # "ubuntu" -> uid 0
- cat /etc/passwd | grep -v ubuntu > /etc/passwd2
- echo "ubuntu:x:0:0:Live session user,,,,:/home/ubuntu:/bin/bash" >> /etc/passwd2
- mv /etc/passwd2 /etc/passwd
- chown -R root.root /home/ubuntu
-
- exit 0
-