home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Linux / Ubuntu_64-bit / ubuntu-11.04-desktop-amd64.iso / casper / filesystem.squashfs / sbin / casper-getty < prev    next >
Text File  |  2011-03-28  |  268b  |  16 lines

  1. #! /bin/sh
  2.  
  3. autologin=1
  4. for opt in "$@" ; do
  5.         if [ "$opt" = "-l" -o "$opt" = "-n" ] ; then
  6.                 autologin=0
  7.         fi
  8. done
  9.  
  10. if [ "$autologin" = "1" ] ; then
  11.          exec /sbin/getty -n -l /sbin/casper-login $*
  12. else
  13.          exec /sbin/getty $*
  14. fi
  15.  
  16.