home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Maclife 157
/
MACLIFE157-2001-09.ISO.7z
/
MACLIFE157-2001-09.ISO
/
autorun
next >
Wrap
Text File
|
2001-03-12
|
681b
|
33 lines
#!/bin/sh
#
# Autorun script for HOLON Linux
# Copyright (c) 2001 HOLON Inc.
kwmpid=`/sbin/pidof kwm`
kpackage=`/usr/bin/which kpackage` 2> /dev/null
gnorpm=`/usr/bin/which gnorpm-auth` 2> /dev/null
synaptic=`/usr/bin/which synaptic` 2> /dev/null
if [ -d /mnt/cdrom ]; then
cd /mnt/cdrom
fi
if [ "$kwmpid" = "" ]; then
# they are running GNOME most likely, use gnorpm
if [ ! "$synaptic" = "" ]; then
$synaptic
elif [ ! "$gnorpm" = "" ]; then
$gnorpm
elif [ ! "$kpackage" = "" ]; then
$kpackage
fi
else
if [ ! "$synaptic" = "" ]; then
$synaptic
elif [ ! "$kpackage" = "" ]; then
$kpackage
elif [ ! "$gnorpm" = "" ]; then
$gnorpm
fi
fi