[X2Go-Commits] [live-build-x2go] 20/167: added timestamps, switched log output to | tee -a /dev/tty9 like in the other scripts
git-admin at x2go.org
git-admin at x2go.org
Sat Nov 18 00:32:35 CET 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch feature/openbox-magic-pixel-workaround
in repository live-build-x2go.
commit 89fa571181754d388bed467b86859f7caf2311df
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Sat Jul 22 00:34:08 2017 +0200
added timestamps, switched log output to | tee -a /dev/tty9 like in the other scripts
---
config/includes.chroot/lib/live/config/2500-tcpprint | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/config/includes.chroot/lib/live/config/2500-tcpprint b/config/includes.chroot/lib/live/config/2500-tcpprint
index 6026f44..68bbe5c 100755
--- a/config/includes.chroot/lib/live/config/2500-tcpprint
+++ b/config/includes.chroot/lib/live/config/2500-tcpprint
@@ -28,7 +28,7 @@ if grep -q "\W*tcpprint\W*" /proc/cmdline ; then
[ -d /dev/usb ] && PRINTERDEVICES=$(find /dev/usb -type c -name "lp*" | sort)
PRINTERDEVICES="$PRINTERDEVICES $(find /dev/ -maxdepth 1 -type c -name "lp*" | sort)"
- echo -e "\nSetting up local printers ..." >>/dev/tty9
+ echo -e "\n$(date +'%F | %T | ')Setting up local printers ..." | tee -a /dev/tty9
# Create a listening port for a TCP/9100-RAW-printer
#
@@ -52,21 +52,21 @@ service jetdirect${PRINTERCOUNT}
$TCPPRINTONLYFROM
}
JETDIRCONF
- echo "Mapping $PRINTERDEV => $PORTNUMBER" >>/dev/tty9
+ echo "$(date +'%F | %T | ')Mapping $PRINTERDEV => $PORTNUMBER" | tee -a /dev/tty9
PRINTERCOUNT=$((PRINTERCOUNT+1))
done
echo "#Local printer config: Done." >/etc/xinetd.d/jetdirect
if ps -C xinetd --no-header >/dev/null ; then
- echo -n "xinetd needs to be restarted, trying to do that ..." >>/dev/tty9
+ echo -n "$(date +'%F | %T | ')xinetd needs to be restarted, trying to do that ..." | tee -a /dev/tty9
if /etc/init.d/xinetd restart; then
- echo -n " success. All done." >>/dev/tty9
+ echo -n " success. All done." | tee -a /dev/tty9
else
- echo -n " error." >>/dev/tty9
+ echo -n " error." | tee -a /dev/tty9
fi
else
- echo -n "No xinetd restart necessary. All done." >>/dev/tty9
+ echo -n "$(date +'%F | %T | ')No xinetd restart necessary. All done." | tee -a /dev/tty9
fi
) &
--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
More information about the x2go-commits
mailing list