From 4d9dc1bc8e64ba40911d8559a45fd105d7015e75 Mon Sep 17 00:00:00 2001 From: iamromulan <50184035+iamromulan@users.noreply.github.com> Date: Sun, 26 Nov 2023 15:29:13 -0500 Subject: [PATCH] Update RM520_rgmii_toolkit.sh Fix formatting issue --- RM520_rgmii_toolkit.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RM520_rgmii_toolkit.sh b/RM520_rgmii_toolkit.sh index 4aa0631..d6db510 100644 --- a/RM520_rgmii_toolkit.sh +++ b/RM520_rgmii_toolkit.sh @@ -191,7 +191,7 @@ Description=Reboot Modem Daily [Service] Type=oneshot -ExecStart=/bin/echo -e 'AT+CFUN=1,1 \r' > /dev/smd7 +ExecStart=/bin/sh -c "/bin/echo -e 'AT+CFUN=1,1 \r' > /dev/smd7" Restart=no RemainAfterExit=no" > /lib/systemd/system/rebootmodem.service @@ -212,8 +212,9 @@ Type=oneshot ExecStart=/bin/systemctl start rebootmodem.timer RemainAfterExit=yes" > /lib/systemd/system/rebootmodem-trigger.service - # Create symbolic links for the trigger service in the wanted directory + # Create symbolic links for the trigger service in the wanted directory and give exe perm to service unit ln -sf /lib/systemd/system/rebootmodem-trigger.service /lib/systemd/system/multi-user.target.wants/ + chmod +x /lib/systemd/system/rebootmodem.service # Reload systemd to recognize the new timer and trigger service systemctl daemon-reload