From 6370fa6cff0ec2a8ac8d50d1595ec9500f6631c9 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Wed, 24 Jan 2001 00:31:17 +0000 Subject: Initial commit - LFS 2.4.4 files git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@14 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/halt.sgml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 chapter07/halt.sgml (limited to 'chapter07/halt.sgml') diff --git a/chapter07/halt.sgml b/chapter07/halt.sgml new file mode 100644 index 000000000..f7849ad0b --- /dev/null +++ b/chapter07/halt.sgml @@ -0,0 +1,27 @@ + +Creating the halt script + + +Create a new file /etc/init.d/halt containing the +following: + + + + +cat > halt << "EOF" +#!/bin/sh +# Begin /etc/init.d/halt + +# +# Call halt. See man halt for the meaning of the parameters +# + +/sbin/halt -d -f -i -p + +# End /etc/init.d/halt +EOF + + + + + -- cgit v1.2.3-54-g00ecf