Created
April 2, 2020 14:18
-
-
Save frojnd/17dbc5e6e0da024d12f6585dd6b2c371 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## We start picocom every boot | |
function prepare_crontab { | |
crontab_path="/var/spool/cron/crontabs" | |
sudo echo "@reboot $HOME/work/start_picocom.sh" > "$crontab_path/$USER" | |
sudo chown "$USER:crontab" $crontab_path/$USER | |
sudo chmod 600 $crontab_path/$USER | |
} | |
prepare_crontab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment