Explorar o código

/etc/init.d/swupdate: pass $SWUPDATE_EXTRA_ARGS to daemon

The idea is that /etc/default/swupdate now can be used to set
$SWUPDATE_EXTRA_ARGS. I plan to use this for passing --select=... to
swupdate, based on some shell logic.

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Bjørn Forsman %!s(int64=10) %!d(string=hai) anos
pai
achega
2cc691d795
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      recipes-support/swupdate/swupdate/swupdate

+ 1 - 1
recipes-support/swupdate/swupdate/swupdate

@@ -57,7 +57,7 @@ do_start() {
 	*)
 		echo "Starting $DESC ..."
 		cd /home/root
-		exec $DAEMON -v -w "-document_root /www" &
+		exec $DAEMON -v -w "-document_root /www" $SWUPDATE_EXTRA_ARGS &
 		exit 0
 		;;
 	esac