summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/etcnet/etcnet.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/etcnet/etcnet.install')
-rwxr-xr-xabs/core-testing/etcnet/etcnet.install11
1 files changed, 9 insertions, 2 deletions
diff --git a/abs/core-testing/etcnet/etcnet.install b/abs/core-testing/etcnet/etcnet.install
index 2605e95..a8b8b17 100755
--- a/abs/core-testing/etcnet/etcnet.install
+++ b/abs/core-testing/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,7 +21,10 @@ 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