aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/sbin/service11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr/sbin/service b/usr/sbin/service
index 4e82bad1..4f0acc07 100755
--- a/usr/sbin/service
+++ b/usr/sbin/service
@@ -1,6 +1,15 @@
#!/bin/bash
-. /etc/init.d/functions
+# Check whether file $1 is a backup or rpm-generated file and should be ignored
+# Copy of the function from etc/rc.d/init.d/functions
+is_ignored_file() {
+ case "$1" in
+ *~ | *.bak | *.old | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
+ return 0
+ ;;
+ esac
+ return 1
+}
VERSION="$(basename $0) ver. 1.1"
USAGE="Usage: $(basename $0) < option > | --status-all | \