dear all,
i boot in init level 3 and have dropline gnome 2.10 over slack 10.1.
since gnome 2.10 needs GDM to have its sessions shutdown or reboot, i wanted to find a way to do a shutdown with a mouse click from within gnome and still boot without GDM.
therefore, i added to my panel an application launcher that launches the following script in a terminal:
Code:
#! /bin/sh
# SHUTDOWN Script
echo -n "Shutdown now (n to cancel)? "
read yn
case $yn in
[nN]* ) echo "Shutdown canceled." ; break ;;
* ) echo 'Shutting down system.' ; poweroff ;;
esac
this works wonderfully. i was just wandering if someone can tell me if this is actually something that can harm my system, since it may be considered kinda 'dirty'.
thanks,
aj.