aboutsummaryrefslogtreecommitdiff
path: root/network/iscsitarget/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/iscsitarget/doinst.sh')
-rw-r--r--network/iscsitarget/doinst.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/network/iscsitarget/doinst.sh b/network/iscsitarget/doinst.sh
deleted file mode 100644
index 5643f528ba60..000000000000
--- a/network/iscsitarget/doinst.sh
+++ /dev/null
@@ -1,31 +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.iscsi-target.new
-config etc/iet/initiators.allow.new
-config etc/iet/targets.allow.new
-config etc/iet/ietd.conf.new
-
-chroot . /sbin/depmod -a 2>/dev/null 1>/dev/null
-