diff --git a/stage2/01-sys-tweaks/files/rc.local b/stage2/01-sys-tweaks/files/rc.local index 2368717..8771ea1 100755 --- a/stage2/01-sys-tweaks/files/rc.local +++ b/stage2/01-sys-tweaks/files/rc.local @@ -11,6 +11,10 @@ # # By default this script does nothing. +exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file +exec 1>&2 # send stdout to the same log file +set -x # tell sh to display commands before execution + # Print the IP address _IP=$(hostname -I) || true if [ "$_IP" ]; then