From b5ce47c155157269bc558ef1654aad5a84e79224 Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Mon, 25 Mar 2024 09:14:16 -0500 Subject: Use project name in scripts Make the relationship between the scripts clear by using the project name in the update and download scripts. --- README.md | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 0f6fd55..d5eca2a 100644 --- 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 -- cgit v1.2.3