From 9888b262c2deb32064b30eb637ece9e424356777 Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer Date: Thu, 5 May 2011 01:26:44 +0200 Subject: Add syntax to vim modeline in rc.d script With new name of script, vim doesn't reconize correctly file format. We need to set it explicitly. Signed-off-by: Sebastien Luttringer --- rc.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d') diff --git a/rc.d b/rc.d index 02c2b6c..49b7c2f 100755 --- a/rc.d +++ b/rc.d @@ -58,4 +58,4 @@ esac exit $ret -# vim: set ts=2 sw=2 noet: +# vim: set ts=2 sw=2 ft=sh noet: -- cgit v1.2.3 From d1be877eb0ad3be634cee08aada8f8d1265023a4 Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer Date: Thu, 5 May 2011 01:42:07 +0200 Subject: Add TERM var to rc.d cleaned env We need to do this to allow a correct detection of terminal colors in functions sourced by rc.d scripts Signed-off-by: Sebastien Luttringer --- rc.d | 1 + 1 file changed, 1 insertion(+) (limited to 'rc.d') diff --git a/rc.d b/rc.d index 49b7c2f..55871b1 100755 --- a/rc.d +++ b/rc.d @@ -50,6 +50,7 @@ case $1 in ENV+=" PREVLEVEL='${runlevel:0:1}'" ENV+=" RUNLEVEL='${runlevel:2:1}'" ENV+=" CONSOLE='${CONSOLE:-/dev/console}'" + ENV+=" TERM='${TERM}'" for i; do [[ -x "/etc/rc.d/$i" ]] && cd / && eval /usr/bin/env -i $ENV "/etc/rc.d/$i" "$action" (( ret += !! $? )) # clamp exit value to 0/1 -- cgit v1.2.3