1234567891011121314151617181920 |
- #!/bin/sh
- #puppy/woof does not use runlevels. /etc/init.d/dbus (in Ubuntu) runs 'runlevel'
- #ommand at startup. um, so i am providing a dummy here (it is normally
- #in the sysvinit pkg)...
- #detect if a chrooted environment...
- if [ ! -e /proc/mounts ];then
- echo "unknown"
- exit
- fi
- XSTATUS="no"
- [ -z $DISPLAY ] || XSTATUS="yes"
- if [ "$XSTATUS" = "no" ];then
- echo "2 3" #previous and current runlevels.
- else
- echo "3 5"
- fi
|