1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/boot/halt.sh
Eelco Dolstra 656ea85e60 * Ignore failure to set up networking.
* Unmount, don't remount / on halt.

svn path=/nixu/trunk/; revision=1169
2004-07-16 15:41:47 +00:00

13 lines
243 B
Bash

#! @bash@/bin/sh -e
. @out@/bin/env.sh
echo "unmount file systems..."
umount -avt noproc,nonfs,nosmbfs,nodevfs || echo "(failed)" # ignore errors
echo "syncing..."
sync || echo "(failed)" # ignore errors
echo "shutting down..."
halt -d -f