summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/etcnet/etcnet.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-01-26 21:24:08 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-01-26 21:24:08 (GMT)
commit4823e05ad1b2c8adfc191f31d3fe535df1326571 (patch)
tree2908302bfb3ed915c9ef009fb078320251a6f049 /abs/core-testing/etcnet/etcnet.install
parent4c9c4297f2f3fe5275ac24239cb8bfb3fb294923 (diff)
downloadlinhes_pkgbuild-4823e05ad1b2c8adfc191f31d3fe535df1326571.zip
linhes_pkgbuild-4823e05ad1b2c8adfc191f31d3fe535df1326571.tar.gz
linhes_pkgbuild-4823e05ad1b2c8adfc191f31d3fe535df1326571.tar.bz2
Create /var/locl/subsys for etcnet
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