]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - updates/1.4.2/setup
git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848...
[people/pmueller/ipfire-2.x.git] / updates / 1.4.2 / setup
diff --git a/updates/1.4.2/setup b/updates/1.4.2/setup
new file mode 100644 (file)
index 0000000..621143f
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+echo "This is the 1.4.2 update patch for IPCop 1.4.1 installing."
+
+CURRENTVERSION=`cat /etc/issue | awk '{ print $2 }' | sed -e 's/v//'`
+UPGRADEVERSION="1.4.2"
+
+if [ "$CURRENTVERSION" != "1.4.1" -a "$CURRENTVERSION" != "1.4.2" ]; then
+       echo "You are not running IPCop v1.4.1 for this patch to install."
+       echo "Aborting installation."
+       exit -1
+fi
+
+/bin/tar -zxpf patch.tar.gz -C /
+/sbin/depmod -a
+/bin/rm -f /var/run/need-depmod-`uname -r`
+
+# shift eciadsl data to /etc (modems.db use a different format)
+/bin/rm -f /var/ipcop/eciadsl/{firmware00.bin,modems.db}
+
+# Fix leases problem (ends never) should have been done in 1.4.1 upgrade
+killall dhcpd
+rm -f /var/state/dhcp/*
+touch /var/state/dhcp/dhcpd.leases
+/usr/local/bin/restartdhcp