Explorar el 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 hace 10 años
padre
commit
2cc691d795
Se han modificado 1 ficheros con 1 adiciones y 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