diff --git a/etc/systemd/system/aminda-nocron-reboot.service b/etc/systemd/system/aminda-nocron-reboot.service index a1fefbce..ea6ce731 100644 --- a/etc/systemd/system/aminda-nocron-reboot.service +++ b/etc/systemd/system/aminda-nocron-reboot.service @@ -10,6 +10,7 @@ Environment=LINUXBREWGROUP=wheel # Remember `systemd-path search-binaries-default` ExecStartPre=-echo 1 > /sys/devices/system/cpu/microcode/reload # - means it can fail, without failing those after it. +ExecStartPre=-chmod a+x /root /var/roothome # These aren't given --now as THEY WOULD INFINITE LOOP. ExecStartPre=-systemctl enable aminda-nocron-rebootish.service ExecStartPre=-systemctl enable aminda-nocron-rebootish.timer diff --git a/var/spool/cron/root b/var/spool/cron/root index 91ed9c04..c9e87b8a 100644 --- a/var/spool/cron/root +++ b/var/spool/cron/root @@ -1,3 +1,6 @@ +# symlinks to root home +@reboot /usr/bin/chmod a+x /root /var/roothome >/dev/null 2>&1 + # Workaround it appearing to break SSH especially on family PC @reboot /bin/bash -c "/bin/nordvpn set killswitch off;/usr/bin/systemctl disable --now nordvpnd.{service.socket} --quiet"