diff options
author | Miloslav Trmac <mitr@volny.cz> | 2006-07-27 02:17:03 +0000 |
---|---|---|
committer | Miloslav Trmac <mitr@volny.cz> | 2006-07-27 02:17:03 +0000 |
commit | 3db5ad738151d27001658d570bce0c61648fc2cc (patch) | |
tree | fcb9a69ac7f3896e0636f929fd87f13828c51852 /service | |
parent | 02315ee166c1625d9524a783a1ad49383a4623db (diff) | |
download | initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar.gz initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar.bz2 initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar.xz initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.zip |
Consistently exclude backup files when globbing
Diffstat (limited to 'service')
-rwxr-xr-x | service | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,8 +1,6 @@ #!/bin/sh -# Set up a default search path. -PATH="/sbin:/usr/sbin:/bin:/usr/bin" -export PATH +. /etc/init.d/functions VERSION="`basename $0` ver. 0.91" USAGE="Usage: `basename $0` < option > | --status-all | \ @@ -32,11 +30,11 @@ while [ $# -gt 0 ]; do cd ${SERVICEDIR} for SERVICE in * ; do case "${SERVICE}" in - functions | halt | killall | single| linuxconf| kudzu | \ - *rpmorig | *rpmnew | *rpmsave | *~ | *.orig) + functions | halt | killall | single| linuxconf| kudzu) ;; *) - if [ -x "${SERVICEDIR}/${SERVICE}" ]; then + if ! is_ignored_file "${SERVICE}" \ + && [ -x "${SERVICEDIR}/${SERVICE}" ]; then env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" status fi ;; |