diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-08 09:01:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-03-06 09:30:22 +0700 |
commit | 45d4b0ec52d5dd0a2e38b0bf8c4181c68f0658c8 (patch) | |
tree | 9ae4fa6c62cd6b9d71c1cc6cc02b89e16c29c763 /network/openvswitch/doinst.sh | |
parent | 6628854fa673a846ac91b74013b3108b1458583c (diff) |
network/openvswitch: Removed (Requires Linux Kernel < 4.0).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/openvswitch/doinst.sh')
-rw-r--r-- | network/openvswitch/doinst.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/network/openvswitch/doinst.sh b/network/openvswitch/doinst.sh deleted file mode 100644 index 9a89f95fb8789..0000000000000 --- a/network/openvswitch/doinst.sh +++ /dev/null @@ -1,29 +0,0 @@ -config() { - NEW="$1" - 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... -} - -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.openvswitch.new - -if [ -x /sbin/depmod ]; then - chroot . /sbin/depmod -a >/dev/null 2>&1 -fi |