Logo
Explore Help
Sign In
public/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Packages Projects Releases Wiki Activity
nixpkgs/boot/halt.sh

13 lines
382 B
Bash
Raw Normal View History

* Started setting up a proper init environment. svn path=/nixu/trunk/; revision=785
2004-02-16 09:41:00 +00:00
#! @bash@/bin/sh -e
* Use sysvinit's init to start the system. This has the happy side-effect of initialising the console properly (i.e., enabling Ctrl-[C, Z]). svn path=/nixu/trunk/; revision=801
2004-02-18 10:56:07 +00:00
export PATH=@nix@/bin:@bash@/bin:@coreutils@/bin:@findutils@/bin:@utillinux@/bin:@utillinux@/sbin:@sysvinit@/bin:@sysvinit@/sbin:@e2fsprogs@/bin:@e2fsprogs@/sbin
* Started setting up a proper init environment. svn path=/nixu/trunk/; revision=785
2004-02-16 09:41:00 +00:00
* Use sysvinit's init to start the system. This has the happy side-effect of initialising the console properly (i.e., enabling Ctrl-[C, Z]). svn path=/nixu/trunk/; revision=801
2004-02-18 10:56:07 +00:00
echo "remounting / read-only..."
mount -n -o remount,rw /dev/root / || echo "(failed)" # ignore errors
echo "syncing..."
sync || echo "(failed)" # ignore errors
* Started setting up a proper init environment. svn path=/nixu/trunk/; revision=785
2004-02-16 09:41:00 +00:00
echo "shutting down..."
* Use sysvinit's init to start the system. This has the happy side-effect of initialising the console properly (i.e., enabling Ctrl-[C, Z]). svn path=/nixu/trunk/; revision=801
2004-02-18 10:56:07 +00:00
halt -d -f
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 46ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API