home *** CD-ROM | disk | FTP | other *** search
/ Maclife 157 / MACLIFE157-2001-09.ISO.7z / MACLIFE157-2001-09.ISO / autorun next >
Text File  |  2001-03-12  |  681b  |  33 lines

  1. #!/bin/sh
  2. #
  3. # Autorun script for HOLON Linux
  4. # Copyright (c) 2001 HOLON Inc.
  5.  
  6. kwmpid=`/sbin/pidof kwm`
  7. kpackage=`/usr/bin/which kpackage` 2> /dev/null
  8. gnorpm=`/usr/bin/which gnorpm-auth` 2> /dev/null
  9. synaptic=`/usr/bin/which synaptic` 2> /dev/null
  10.  
  11. if [ -d /mnt/cdrom ]; then
  12.   cd /mnt/cdrom
  13. fi
  14.  
  15. if [ "$kwmpid" = "" ]; then
  16.   # they are running GNOME most likely, use gnorpm
  17.   if [ ! "$synaptic" = "" ]; then
  18.     $synaptic
  19.   elif [ ! "$gnorpm" = "" ]; then
  20.     $gnorpm
  21.   elif [ ! "$kpackage" = "" ]; then
  22.     $kpackage
  23.   fi
  24. else
  25.   if [ ! "$synaptic" = "" ]; then
  26.     $synaptic
  27.   elif [ ! "$kpackage" = "" ]; then
  28.     $kpackage
  29.   elif [ ! "$gnorpm" = "" ]; then
  30.     $gnorpm
  31.   fi
  32. fi
  33.