Browse Source

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

SVN-Revision: 32340
Jo-Philipp Wich 13 years ago
parent
commit
bfe966574f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      package/base-files/files/etc/rc.common

+ 3 - 1
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}"