base-files: enable shell tracing in initscripts when INIT_TRACE is set

SVN-Revision: 32340
This commit is contained in:
Jo-Philipp Wich 2012-06-13 17:10:41 +00:00
parent 9a1d6f0678
commit bfe966574f

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2006-2011 OpenWrt.org # Copyright (C) 2006-2012 OpenWrt.org
. $IPKG_INSTROOT/lib/functions.sh . $IPKG_INSTROOT/lib/functions.sh
. $IPKG_INSTROOT/lib/functions/service.sh . $IPKG_INSTROOT/lib/functions/service.sh
@ -75,6 +75,8 @@ $EXTRA_HELP
EOF EOF
} }
${INIT_TRACE:+set -x}
. "$initscript" . "$initscript"
ALL_COMMANDS="start stop reload restart boot shutdown enable disable enabled depends ${EXTRA_COMMANDS}" ALL_COMMANDS="start stop reload restart boot shutdown enable disable enabled depends ${EXTRA_COMMANDS}"