home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / etc / rc.local < prev    next >
Encoding:
Text File  |  2009-09-03  |  825 b   |  30 lines

  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "exit 0" on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. # By default this script does nothing.
  13. #
  14. # Mac Life / Klaus.Franken@StrukturPunkt.de: Anpassungen f√ºr Mac Life Ubuntu
  15. # (c) 2009 Klaus.Franken@StrukturPunkt.de
  16.  
  17. # Zeitzone
  18. mv /etc/localtime /etc/localtime.ORIG
  19. ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
  20.  
  21. # "ubuntu" -> uid 0
  22. cat /etc/passwd | grep -v ubuntu > /etc/passwd2
  23. echo "ubuntu:x:0:0:Live session user,,,,:/home/ubuntu:/bin/bash" >> /etc/passwd2
  24. mv /etc/passwd2 /etc/passwd
  25. rm -rf /home/ubuntu/Desktop/*
  26. cp -a /MacLifeTools/Desktop/. /home/ubuntu/Desktop/
  27. chown -R root.root /home/ubuntu
  28.  
  29. exit 0
  30.