From 47f25c07b54478f2a828c19ca2ea862cd1a1a6a9 Mon Sep 17 00:00:00 2001 From: Dan Puttick Date: Sun, 29 Jan 2017 22:59:36 -0500 Subject: [PATCH] Adjustments to match repo to working image --- fs_filecheck/etc/fstab | 0 fs_filecheck/etc/group | 3 ++- fs_filecheck/etc/rc.local | 6 ------ fs_filecheck/etc/systemd/system/rc-local.service | 8 +++++--- 4 files changed, 7 insertions(+), 10 deletions(-) mode change 100644 => 100755 fs_filecheck/etc/fstab diff --git a/fs_filecheck/etc/fstab b/fs_filecheck/etc/fstab old mode 100644 new mode 100755 diff --git a/fs_filecheck/etc/group b/fs_filecheck/etc/group index 6a7844f..f980fb0 100644 --- a/fs_filecheck/etc/group +++ b/fs_filecheck/etc/group @@ -19,7 +19,7 @@ cdrom:x:24:pi floppy:x:25: tape:x:26: sudo:x:27:pi -audio:x:29:pi +audio:x:29:pi,timidity dip:x:30: www-data:x:33: backup:x:34: @@ -52,3 +52,4 @@ indiecity:x:1001:root spi:x:1002:pi gpio:x:1003:pi kitten:x:1004: +timidity:x:110: diff --git a/fs_filecheck/etc/rc.local b/fs_filecheck/etc/rc.local index d0b2b9b..6635e4b 100755 --- a/fs_filecheck/etc/rc.local +++ b/fs_filecheck/etc/rc.local @@ -21,12 +21,6 @@ clean(){ echo "GROOMER: end of boot, running rc.local." -# Print the IP address (this doesn't work currently?) -# _IP=$(hostname -I) || true -# if [ "$_IP" ]; then -# printf "My IP address is %s\n" "$_IP" -# fi - if [ -e /dev/sda ]; then if [ -e /dev/sdb ]; then # Avoid possible misuse - turn off eth0 (ethernet port) diff --git a/fs_filecheck/etc/systemd/system/rc-local.service b/fs_filecheck/etc/systemd/system/rc-local.service index 7b0d9a7..4203bc2 100644 --- a/fs_filecheck/etc/systemd/system/rc-local.service +++ b/fs_filecheck/etc/systemd/system/rc-local.service @@ -1,12 +1,14 @@ [Unit] Description=/etc/rc.local Compatibility +ConditionPathExists=/etc/rc.local [Service] -Type=oneshot -ExecStart=/etc/rc.local +Type=forking +ExecStart=/etc/rc.local start TimeoutSec=0 -StandardInput=tty +StandardOutput=tty RemainAfterExit=yes +SysVStartPriority=99 [Install] WantedBy=multi-user.target