[debian-knoppix] [HINT] How to reboot knoppix cleanly without ejecting cdrom ...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Christian Perle and me had an idea how to reboot knoppix without ejecting the
CD ...
Its quite simple ...
Until there is a command line Option just use the following commands:
rm -f /etc/init.d/knoppix-halt
sed 's;\[ -x /etc/init;: #&;g' /KNOPPIX/etc/init.d/knoppix-halt >
/etc/init.d/knoppix-halt
And then halt the system with halt.
If you don't want to use this cryptic script do:
rm -f /etc/init.d/knoppix-halt
cp /KNOPPIX/etc/init.d/knoppix-halt /etc/init.d/knoppix-halt
and edit /etc/init.d/knoppix-halt to uncomment the following lines:
FINALCMD="/sbin/$command"
#if [ -z "$INSTALLED" ]; then
#[ -x /etc/init ] || cp -p /sbin/init /etc/
#[ -x /etc/init ] && FINALCMD="/etc/init"
#fi
Then Knoppix will complain at halt/reboot that it can't unmount the CD, but
thats exactly what we want ;-)
cu
Fabian
PS: Surprising that the solution to this problem was soo easy ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE/GrTII0lSH7CXz7MRAqTzAJ9uKmiio+CoJ5FclAtNay3/RdRDHwCggY2O
W+OGwIhv6feOENrYveH0/DM=
=siIl
-----END PGP SIGNATURE-----
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix
Reply to: