Update of /cvsroot/devil-linux/build/config/etc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13727/config/etc
Modified Files:
profile
Log Message:
Added commented out warning to run save-config before shutdown
Index: profile
===================================================================
RCS file: /cvsroot/devil-linux/build/config/etc/profile,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- profile 6 Jan 2004 19:26:48 -0000 1.6
+++ profile 3 Mar 2004 20:37:29 -0000 1.7
@@ -20,3 +20,28 @@
#export LANG=es_ES@euro
#export LC_ALL=es_ES@euro
+
+# Uncomment this to remind yourself to run save-config before shutting down.
+#
+# You may modify the number of seconds to wait before timing out by changing
+# the "60" (after the "-t") to another value on the "read" line.
+#
+# You may also modify the default answer from timeout, and just pressing ENTER,
+# from "n" to "y" by changing "${ANS:-n}" to "${ANS:-y}" on the "if" statement.
+#
+# Start uncommenting (removing the first "#") on the next line:
+#shutdown () {
+# echo
+# echo "*** Reminder: Do not forget to run save-config! ***"
+# echo
+# read -p "Continue with shutdown? (y/n) " -t 60 -n 1 -rs ANS
+# echo
+# if [ "${ANS:-n}" = "y" ]; then
+# echo "Running shutdown now:"
+# /sbin/shutdown "$@"
+# else
+# echo "Shutdown canceled."
+# unset ANS
+# fi
+#}
+# Stop uncommenting the shutdown warning (do not uncomment this line).
|