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-10-31 12:36:27 +0100
commitc200aed368884f278bd6c9e43050fa812439c0e4 (patch)
tree7639901acdd6011e89cfa4cc7c228b633a6eb2d1
parent75bf420df0f31cc79d1603c2b5a184ccdb151813 (diff)
downloadinitscripts-c200aed368884f278bd6c9e43050fa812439c0e4.tar
initscripts-c200aed368884f278bd6c9e43050fa812439c0e4.tar.gz
initscripts-c200aed368884f278bd6c9e43050fa812439c0e4.tar.bz2
initscripts-c200aed368884f278bd6c9e43050fa812439c0e4.tar.xz
initscripts-c200aed368884f278bd6c9e43050fa812439c0e4.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 e5ffb7f2..b3d03fd6 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
@@ -686,7 +686,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 \