]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
templates: use fd 9 instead of 200 1146/head
authorElan Ruusamäe <glen@delfi.ee>
Sat, 20 Aug 2016 14:09:28 +0000 (17:09 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 21 Aug 2016 09:17:06 +0000 (12:17 +0300)
to catch up mksh changes from 17abf27

Signed-off-by: Elan Ruusamäe <glen@delfi.ee>
templates/lxc-slackware.in

index c8e8e730ae6ee3dfaeb6a46228200a4e3ed0d0c5..5005918407999a9cb7920c9da1761e5c3383a7aa 100644 (file)
@@ -501,7 +501,7 @@ install_slackware()
 rootfs=$1
 mkdir -p /var/lock/subsys/
 (
-flock -n -x 200
+flock -n -x 9
 if [ $? -ne 0 ]; then
        echo "Cache repository is busy."
        return 1
@@ -629,7 +629,7 @@ sed -i 's|3\ \-x|3 -x -s|' $ROOT/etc/rc.d/rc.syslog || true
 
 return 0
 
-) 200>/var/lock/subsys/lxc
+) 9>/var/lock/subsys/lxc
 
 return $?
 }
@@ -666,7 +666,7 @@ fi
 
 # lock, so we won't purge while someone is creating a repository
 (
-flock -n -x 200
+flock -n -x 9
 if [ $? != 0 ]; then
        echo "Cache repository is busy."
        exit 1
@@ -676,7 +676,7 @@ echo -n "Purging the download cache..."
 rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1
 exit 0
 
-) 200>/var/lock/subsys/lxc
+) 9>/var/lock/subsys/lxc
 }
 
 usage()