summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-07-21 14:02:59 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-07-21 14:02:59 +0900
commita99ad92a0c5729683a0aa7c478e9a5a097e72d92 (patch)
treecacf3819bfe146ccb52ee2ff4ed50bdb7a437276
parentd0012c37453b283c71f238f36940e821c0caf5f7 (diff)
Init
-rwxr-xr-xpublic/thesiah.sh6
-rwxr-xr-xstatic/thesiah.sh6
2 files changed, 10 insertions, 2 deletions
diff --git a/public/thesiah.sh b/public/thesiah.sh
index 9f3a858..3ceeac0 100755
--- a/public/thesiah.sh
+++ b/public/thesiah.sh
@@ -219,7 +219,11 @@ installationloop() {
comment="$(echo "$comment" | sed -E "s/(^\"|\"$)//g")"
case "$tag" in
"A") aurinstall "$program" "$comment" ;;
- "I") initinstall "$program" "$comment" ;;
+ "I")
+ case "$(readlink -f /sbin/init)" in
+ *systemd*) initinstall "$program" "$comment" ;;
+ esac
+ ;;
"G") gitmakeinstall "$program" "$comment" ;;
"P") pipinstall "$program" "$comment" ;;
*) maininstall "$program" "$comment" ;;
diff --git a/static/thesiah.sh b/static/thesiah.sh
index 9f3a858..3ceeac0 100755
--- a/static/thesiah.sh
+++ b/static/thesiah.sh
@@ -219,7 +219,11 @@ installationloop() {
comment="$(echo "$comment" | sed -E "s/(^\"|\"$)//g")"
case "$tag" in
"A") aurinstall "$program" "$comment" ;;
- "I") initinstall "$program" "$comment" ;;
+ "I")
+ case "$(readlink -f /sbin/init)" in
+ *systemd*) initinstall "$program" "$comment" ;;
+ esac
+ ;;
"G") gitmakeinstall "$program" "$comment" ;;
"P") pipinstall "$program" "$comment" ;;
*) maininstall "$program" "$comment" ;;