Bläddra i källkod

/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 10 år sedan
förälder
incheckning
2cc691d795
1 ändrade filer med 1 tillägg och 1 borttagningar
  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