diff options
author | Tom Gundersen <teg@jklm.no> | 2011-06-01 01:56:48 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-06-01 01:56:48 +0200 |
commit | a41c290180a5f7d0c7aa9eef2210956dd0a8bc63 (patch) | |
tree | a8b6048add82d728041617f66c10b11d6619bbbd /rc.d | |
parent | 017b5a689363aac54313b6e51d0da713f33787b7 (diff) | |
parent | aac43067a13f1940f8f81f45142463e85ce21de2 (diff) |
Merge branch 'snowman'
Conflicts:
rc.d
Trivial conflict with dave's eval purge.
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -55,7 +55,11 @@ case $1 in "TERM=$TERM") cd / for i; do - [[ -x "/etc/rc.d/$i" ]] && /usr/bin/env -i "${ENV[@]}" "/etc/rc.d/$i" "$action" + if [[ -x "/etc/rc.d/$i" ]]; then + /usr/bin/env -i "${ENV[@]}" "/etc/rc.d/$i" "$action" + else + printf "${C_OTHER}:: ${C_FAIL}Error: ${C_DONE}Daemon script $i does not exist.\n" + fi (( ret += !! $? )) # clamp exit value to 0/1 done esac |