]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - 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
1 #!/bin/sh
2
3 echo "This is the 1.4.2 update patch for IPCop 1.4.1 installing."
4
5 CURRENTVERSION=`cat /etc/issue | awk '{ print $2 }' | sed -e 's/v//'`
6 UPGRADEVERSION="1.4.2"
7
8 if [ "$CURRENTVERSION" != "1.4.1" -a "$CURRENTVERSION" != "1.4.2" ]; then
9 echo "You are not running IPCop v1.4.1 for this patch to install."
10 echo "Aborting installation."
11 exit -1
12 fi
13
14 /bin/tar -zxpf patch.tar.gz -C /
15 /sbin/depmod -a
16 /bin/rm -f /var/run/need-depmod-`uname -r`
17
18 # shift eciadsl data to /etc (modems.db use a different format)
19 /bin/rm -f /var/ipcop/eciadsl/{firmware00.bin,modems.db}
20
21 # Fix leases problem (ends never) should have been done in 1.4.1 upgrade
22 killall dhcpd
23 rm -f /var/state/dhcp/*
24 touch /var/state/dhcp/dhcpd.leases
25 /usr/local/bin/restartdhcp