From: Elan Ruusamäe Date: Mon, 13 Jan 2014 09:43:42 +0000 (+0200) Subject: mksh can't redirect fd 200, use 9 X-Git-Tag: auto/th/lxc-1.0.4-0.1~8^2~4 X-Git-Url: http://git.pld-linux.org/?p=packages%2Flxc.git;a=commitdiff_plain;h=a992b44b82fd3f9edac1b6150505e6025de53034 mksh can't redirect fd 200, use 9 --- diff --git a/lxc-pld.in.sh b/lxc-pld.in.sh index c711027..ca1677a 100755 --- a/lxc-pld.in.sh +++ b/lxc-pld.in.sh @@ -187,7 +187,7 @@ install_pld() { mkdir -p @LOCALSTATEDIR@/lock/subsys/ ( - flock -x 200 + flock -x 9 if [ $? -ne 0 ]; then echo "Cache repository is busy." return 1 @@ -218,7 +218,7 @@ install_pld() fi return 0 - ) 200>@LOCALSTATEDIR@/lock/subsys/lxc-pld + ) 9>@LOCALSTATEDIR@/lock/subsys/lxc-pld return $? } @@ -287,7 +287,7 @@ clean() # lock, so we won't purge while someone is creating a repository ( - flock -x 200 + flock -x 9 if [ $? != 0 ]; then echo "Cache repository is busy." exit 1 @@ -296,7 +296,7 @@ clean() echo -n "Purging the download cache for PLD Linux $release..." rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1 exit 0 - ) 200>@LOCALSTATEDIR@/lock/subsys/lxc-pld + ) 9>@LOCALSTATEDIR@/lock/subsys/lxc-pld } usage()