Commit 96be50d4 authored by Franco Fichtner's avatar Franco Fichtner

firmware: backwards-compat for running script too

parent d2471552
...@@ -25,10 +25,18 @@ ...@@ -25,10 +25,18 @@
# POSSIBILITY OF SUCH DAMAGE. # POSSIBILITY OF SUCH DAMAGE.
LOCKFILE="/tmp/pkg_upgrade.progress" LOCKFILE="/tmp/pkg_upgrade.progress"
FLOCK="/usr/local/bin/flock -n" FLOCK="/usr/local/bin/flock"
if [ ! -f ${FLOCK} ]; then
# backwards-compat
echo "ready"
exit 0
fi
touch ${LOCKFILE}
( (
if ${FLOCK} 9; then if ${FLOCK} -n 9; then
echo "ready" echo "ready"
else else
echo "busy" echo "busy"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment