summaryrefslogtreecommitdiffstats
path: root/abs/core/etcnet/etcnet.install
diff options
context:
space:
mode:
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