diff options
author | Matteo Bernardini | 2019-04-16 20:05:41 +0200 |
---|---|---|
committer | Matteo Bernardini | 2019-04-16 20:05:41 +0200 |
commit | 9ebc325833e858b4295322e10edda22b6b78ac27 (patch) | |
tree | 90dc75fdc9044943dfd98b4e15a2edee6adddb42 /system/haveged/doinst.sh | |
parent | 2a650741141e819af2ecf2c4da75502b0a18d799 (diff) | |
download | slackbuilds-b9c1afb87d8085cf3672ef9e5dcd3255326aca01.tar.gz |
20190416.1 global branch merge.current-20190416.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/haveged/doinst.sh')
-rw-r--r-- | system/haveged/doinst.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/system/haveged/doinst.sh b/system/haveged/doinst.sh deleted file mode 100644 index b9e90c8608..0000000000 --- a/system/haveged/doinst.sh +++ /dev/null @@ -1,28 +0,0 @@ -config() { - for infile in $1; do - NEW="$infile" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... - done -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW - fi - config $NEW -} - -preserve_perms etc/rc.d/rc.haveged.new - |