aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2017-05-25 10:58:07 +0200
committerDee'Kej <deekej@linuxmail.org>2017-05-25 17:50:55 +0200
commit0fe96e5f3705d5c7e968d5fe06989390d63502c5 (patch)
tree1a2796d77190a75e8f1f0cc28af683ba438fb1ae
parent1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5 (diff)
downloadinitscripts-0fe96e5f3705d5c7e968d5fe06989390d63502c5.tar
initscripts-0fe96e5f3705d5c7e968d5fe06989390d63502c5.tar.gz
initscripts-0fe96e5f3705d5c7e968d5fe06989390d63502c5.tar.bz2
initscripts-0fe96e5f3705d5c7e968d5fe06989390d63502c5.tar.xz
initscripts-0fe96e5f3705d5c7e968d5fe06989390d63502c5.zip
Add *.old to list of ignored files
-rw-r--r--rc.d/init.d/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 08d7e0f4..0f627f15 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -618,7 +618,7 @@ strstr() {
# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
case "$1" in
- *~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
+ *~ | *.bak | *.old | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
return 0
;;
esac
@@ -670,7 +670,7 @@ apply_sysctl() {
}
# A sed expression to filter out the files that is_ignored_file recognizes
-__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
+__sed_discard_ignored_files='/\(~\|\.bak\|\.old\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
if [ "$_use_systemctl" = "1" ]; then
if [ "x$1" = xstart -o \