From 7d9345c9564370bdb32cbb06d24b238986572ea6 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 19 Aug 2021 12:42:52 +0200 Subject: Added battery-low-notify script and crontab to run it every 10min --- install | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install b/install index 2c6ee73..892e845 100755 --- a/install +++ b/install @@ -6,7 +6,7 @@ if [ "$USER" = 'root' ] then - crontab 'crontab/root.crontab' + crontab crontab/root.crontab exit fi @@ -96,7 +96,14 @@ parallel_wait ############################################################################### echo '---------------------------- INSTALL CRONTAB -----------------------------' -crontab 'crontab/user.crontab' + +if [ "$(hostname)" = 'charleslaptopcarbon' ] +then + cat crontab/user.crontab crontab/laptop.crontab | crontab - +else + crontab crontab/user.crontab +fi + echo 'INFO: Run this script as root if you want to install the root contab' ############################################################################### -- cgit