Author: blogic Date: 2015-03-26 11:58:17 +0100 (Thu, 26 Mar 2015) New Revision: 45009
Modified: trunk/package/base-files/files/etc/rc.common Log: base-files: add a init.d option that will start the syscall tracer Signed-off-by: John Crispin <[email protected]> Modified: trunk/package/base-files/files/etc/rc.common =================================================================== --- trunk/package/base-files/files/etc/rc.common 2015-03-26 10:58:11 UTC (rev 45008) +++ trunk/package/base-files/files/etc/rc.common 2015-03-26 10:58:17 UTC (rev 45009) @@ -97,7 +97,7 @@ . "$initscript" [ -n "$USE_PROCD" ] && { - EXTRA_COMMANDS="${EXTRA_COMMANDS} running" + EXTRA_COMMANDS="${EXTRA_COMMANDS} running trace" . $IPKG_INSTROOT/lib/functions/procd.sh basescript=$(readlink "$initscript") @@ -114,6 +114,11 @@ fi } + trace() { + TRACE_SYSCALLS=1 + start "$@" + } + stop() { stop_service "$@" procd_kill "$(basename ${basescript:-$initscript})" "$1" _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
