diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-13 17:10:41 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-13 17:10:41 +0000 |
commit | 41f27dafe5c7239a3c645d3b1d7923748922789b (patch) | |
tree | a11368cfe19370738305055363641da877757b60 /package | |
parent | 4a84d63d35492225351c5230dd43bab0a1313961 (diff) |
[package] base-files: enable shell tracing in initscripts when INIT_TRACE is set
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32340 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/etc/rc.common | 4 |
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}" |