From 16c582b369bb61a6989db6c05676d877428c519f Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 20 Jun 2017 23:18:21 +0200 Subject: [PATCH] remove stale lockfile on boot --- rmupdate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rmupdate b/rmupdate index f8b4643..7c4dd7b 100755 --- a/rmupdate +++ b/rmupdate @@ -7,7 +7,9 @@ RCD_DIR=${CONFIG_DIR}/rc.d case "$1" in ""|start) - echo "Nothing to do." + # Remove stale lockfile + [ -e /usr/local/addons/rmupdate/var/install.lock ] && rm /usr/local/addons/rmupdate/var/install.lock + echo "Done." ;; stop|restart)