aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-06-13 17:10:41 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-06-13 17:10:41 +0000
commitbfe966574f85ef391522507ee87689bbfe1e7277 (patch)
tree71ef8373ea7c719c8eb4c925fd7ea3c6317cf839 /package/base-files
parent9a1d6f0678c342fc6eceb79bd3fc6cb815fb981e (diff)
downloadupstream-bfe966574f85ef391522507ee87689bbfe1e7277.tar.gz
upstream-bfe966574f85ef391522507ee87689bbfe1e7277.tar.bz2
upstream-bfe966574f85ef391522507ee87689bbfe1e7277.zip
base-files: enable shell tracing in initscripts when INIT_TRACE is set
SVN-Revision: 32340
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/rc.common4
1 files changed, 3 insertions, 1 deletions
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}"