runlevel 423 B

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