summaryrefslogtreecommitdiffstats
path: root/abs/core/etcnet/etcnet.install
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
commit7b29169fff9e7c624890c5edffe85def8a293136 (patch)
tree47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/etcnet/etcnet.install
parentc491dea779dac29afff3578bf8245943817c2339 (diff)
downloadlinhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2
LinHES 6.01.00
Diffstat (limited to 'abs/core/etcnet/etcnet.install')
-rwxr-xr-xabs/core/etcnet/etcnet.install17
1 files changed, 14 insertions, 3 deletions
diff --git a/abs/core/etcnet/etcnet.install b/abs/core/etcnet/etcnet.install
index 2605e95..f34629f 100755
--- a/abs/core/etcnet/etcnet.install
+++ b/abs/core/etcnet/etcnet.install
@@ -4,7 +4,11 @@
# arg 1: the new package version
pre_install() {
/bin/cp -Rf /etc/net /etc/net.pacsave >/dev/null 2>&1
- /bin/true
+ if [ ! -d /var/lock/subsys ]
+ then
+ mkdir -p /var/lock/subsys
+ fi
+
}
# arg 1: the new package version
@@ -17,13 +21,20 @@ post_install() {
# arg 2: the old package version
pre_upgrade() {
/bin/cp -Rf /etc/net /etc/net.pacsave >/dev/null 2>&1
- /bin/true
+ if [ ! -d /var/lock/subsys ]
+ then
+ mkdir -p /var/lock/subsys
+ fi
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
- /bin/true
+ if [ -f /etc/net/ifaces/eth0/options.pacsave ]
+ then
+ systemconfig.py -m network
+ mv /etc/net/ifaces/eth0/options.pacsave /etc/net/ifaces/eth0/options.pacsave.orig
+ fi
}
# arg 1: the old package version