aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-03-25 09:14:16 -0500
committerSlack Coder <slackcoder@server.ky>2024-03-25 09:14:16 -0500
commitb5ce47c155157269bc558ef1654aad5a84e79224 (patch)
treeb2e6c4927ae13c34c9eb1b55b5e0bcdc81bd097a
parent175057f6b5d7444fa756b2ce972f5e6041ce0932 (diff)
downloadslack-autoupdate-b5ce47c155157269bc558ef1654aad5a84e79224.tar.xz
Use project name in scripts
Make the relationship between the scripts clear by using the project name in the update and download scripts.
-rw-r--r--README.md33
-rw-r--r--src/rc.slack-autoupdate (renamed from src/rc.update)0
-rw-r--r--src/slack-autoupdate (renamed from src/autoupdate)0
3 files changed, 17 insertions, 16 deletions
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
diff --git a/src/rc.update b/src/rc.slack-autoupdate
index afc45d9..afc45d9 100644
--- a/src/rc.update
+++ b/src/rc.slack-autoupdate
diff --git a/src/autoupdate b/src/slack-autoupdate
index 30315df..30315df 100644
--- a/src/autoupdate
+++ b/src/slack-autoupdate