slack-autoupdate

Update your Slackware system automatically
Log | Files | Refs | README

commit b5ce47c155157269bc558ef1654aad5a84e79224
parent 175057f6b5d7444fa756b2ce972f5e6041ce0932
Author: Slack Coder <slackcoder@server.ky>
Date:   Mon, 25 Mar 2024 09:14:16 -0500

Use project name in scripts

Make the relationship between the scripts clear by using the project name
in the update and download scripts.

Diffstat:
MREADME.md | 33+++++++++++++++++----------------
Rsrc/rc.update -> src/rc.slack-autoupdate | 0
Rsrc/autoupdate -> src/slack-autoupdate | 0
3 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/README.md b/README.md @@ -14,10 +14,11 @@ These scripts only currently support stable Slackware64 releases (sorry -current ## Installation and Configuration -There are three components. the [cron script](./src/autoupdate) which downloads -packages, the [rc.update script](./src/rc.update) which installs the packages, and -the [install-kernel script](./src/install-kernel) which updates your computer after a -kernel update. +There are three components. the [cron script](./src/slack-autoupdate) which +downloads packages, the [rc.slack-autoupdate script](./src/rc.slack-autoupdate) +which installs the packages, and the [install-kernel +script](./src/install-kernel) which updates your computer after a kernel +update. ### Cron script @@ -26,52 +27,52 @@ Your system downloads the packages using this script. Adjust the script using your favorite editor: ``` -vim src/autoupdate +vim src/slack-autoupdate ``` Then as root: ``` -cp src/autoupdate /etc/cron.daily -chown root:root /etc/cron.daily/autoupdate -chmod +x /etc/cron.daily/autoupdate +cp src/slack-autoupdate /etc/cron.hourly +chown root:root /etc/cron.hourly/slack-autoupdate +chmod +x /etc/cron.hourly/slack-autoupdate ``` -### rc.update +### rc.slack-autoupdate Your system updates your installed packages using this script. Adjust the script using your favorite editor: ``` -vim src/rc.update +vim src/rc.slack-autoupdate ``` Then as root: ``` -cp src/rc.update /etc/rc.d/ -chown root:root /etc/rc.d/rc.update +cp src/rc.slack-autoupdate /etc/rc.d/ +chown root:root /etc/rc.d/rc.slack-autoupdate ``` Then add this to /etc/rc.d/rc.local: ``` -if [ -x /etc/rc.d/rc.update ]; then - /etc/rc.d/rc.update +if [ -x /etc/rc.d/rc.slack-autoupdate ]; then + /etc/rc.d/rc.slack-autoupdate fi ``` To enable installation on reboot: ``` -chmod +x /etc/rc.d/rc.update +chmod +x /etc/rc.d/rc.slack-autoupdate ``` or to disable it again: ``` -chmod -x /etc/rc.d/rc.update +chmod -x /etc/rc.d/rc.slack-autoupdate ``` ### install-kernel diff --git a/src/rc.update b/src/rc.slack-autoupdate diff --git a/src/autoupdate b/src/slack-autoupdate