- #!/bin/bash
- SDIR="/home/$USER/bin/cb-lib-dir"
- touch /home/$USER/.boot_counter
- counter=$(cat /home/$USER/.boot_counter)
- # Number of boots before the system update
- boots=10
- if [ "$counter" = "$boots" ]
- then
- terminator --title="#! Automatic Update Script" --command="$SDIR/cb-lib-self-update"
- else
- counter=$((counter+1))
- echo "$counter" > /home/$USER/.boot_counter
- fi
- exit 0
Posted by VDP76 on Thu 12th Jul 20:21 (modification of post by view diff)
View followups from VDP76 and Anonymous | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.