From: Jo-Philipp Wich Date: Wed, 13 Jun 2012 17:10:41 +0000 (+0000) Subject: base-files: enable shell tracing in initscripts when INIT_TRACE is set X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bfe966574f85ef391522507ee87689bbfe1e7277;p=openwrt%2Fstaging%2Fjow.git base-files: enable shell tracing in initscripts when INIT_TRACE is set SVN-Revision: 32340 --- diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common index f9dc83d966..fa2df6cd25 100755 --- a/package/base-files/files/etc/rc.common +++ b/package/base-files/files/etc/rc.common @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2006-2011 OpenWrt.org +# Copyright (C) 2006-2012 OpenWrt.org . $IPKG_INSTROOT/lib/functions.sh . $IPKG_INSTROOT/lib/functions/service.sh @@ -75,6 +75,8 @@ $EXTRA_HELP EOF } +${INIT_TRACE:+set -x} + . "$initscript" ALL_COMMANDS="start stop reload restart boot shutdown enable disable enabled depends ${EXTRA_COMMANDS}"