diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-08-19 12:42:52 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-08-19 12:42:52 +0200 |
| commit | 7d9345c9564370bdb32cbb06d24b238986572ea6 (patch) | |
| tree | e9690847f8dca5dccfb759dd53b5b7895eb87872 /install | |
| parent | f064922a74100af86def550d4ef6a50ab4e80203 (diff) | |
| download | dotfiles-7d9345c9564370bdb32cbb06d24b238986572ea6.tar.gz dotfiles-7d9345c9564370bdb32cbb06d24b238986572ea6.tar.bz2 dotfiles-7d9345c9564370bdb32cbb06d24b238986572ea6.zip | |
Added battery-low-notify script and crontab to run it every 10min
Diffstat (limited to 'install')
| -rwxr-xr-x | install | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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' ############################################################################### |
