[package] base-files: enable shell tracing in initscripts when INIT_TRACE is set
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 13 Jun 2012 17:10:41 +0000 (17:10 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 13 Jun 2012 17:10:41 +0000 (17:10 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32340 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/rc.common

index f9dc83d..fa2df6c 100755 (executable)
@@ -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}"