From 1fe19cb0212a1b2ceedb1b212a5868a18a132cad Mon Sep 17 00:00:00 2001 From: Marc Date: Tue, 17 Aug 2021 21:33:35 +0100 Subject: [PATCH] etc: Add rc.local --- etc/rc.local | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 etc/rc.local diff --git a/etc/rc.local b/etc/rc.local new file mode 100644 index 0000000..13e7e4b --- /dev/null +++ b/etc/rc.local @@ -0,0 +1,15 @@ +# Configure Serial Console + +sleep 3 +echo -e '\033c' > /dev/ttyS0 + +if [[ $(SWITCH) == "switch3" ]]; then + SERIAL_WRITE Shark Jack Status: ATTACK MODE +else + SERIAL_WRITE Shark Jack Status: ARMING MODE +fi + +SERIAL_WRITE Press ENTER to activate console + +exit 0 +