From: <bl...@us...> - 2004-03-03 21:18:13
|
Update of /cvsroot/devil-linux/build/config/etc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18527/config/etc Modified Files: profile Log Message: I like this method better. /etc/profile never needs to be changed, which is better for upgrades. Index: profile =================================================================== RCS file: /cvsroot/devil-linux/build/config/etc/profile,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- profile 3 Mar 2004 20:37:29 -0000 1.7 +++ profile 3 Mar 2004 20:57:32 -0000 1.8 @@ -21,27 +21,7 @@ #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). +for s in $(ls /etc/profile.d/*.sh 2> /dev/null) +do + [ -x $s ] && source $s +done |