The reboot/halt commands included with the last few versions
of sysvinit do exactly that (if you use "-i"):
HALT(8) Linux System Administrator's Manual HALT(8)
NAME
halt, reboot, poweroff - stop the system.
OPTIONS
-i Shut down all network interfaces just before halt
or reboot.
Mike.
-- Indifference will certainly be the downfall of mankind, but who cares?- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/