aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE2
-rwxr-xr-xrc.boot4
-rw-r--r--rc.conf2
-rw-r--r--rc.lib3
-rwxr-xr-xrc.shutdown1
5 files changed, 7 insertions, 5 deletions
diff --git a/LICENSE b/LICENSE
index ce5a642..53b8534 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,7 +1,7 @@
MIT License
+Copyright (c) 2019-2024 Cem Keylan
Copyright (c) 2019 Dylan Araps
-Copyright (c) 2019-2020 Cem Keylan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/rc.boot b/rc.boot
index 3b46576..ba5d3dd 100755
--- a/rc.boot
+++ b/rc.boot
@@ -27,7 +27,7 @@ out "Mounting pseudo filesystems..."; {
mnt mode=1777,nosuid,nodev tmpfs shm /dev/shm
{
- ln -sf /proc/self/fs /dev/fd
+ ln -sf /proc/self/fd /dev/fd
ln -sf fd/0 /dev/stdin
ln -sf fd/1 /dev/stdout
ln -sf fd/2 /dev/stderr
@@ -101,7 +101,7 @@ out "Loading sysctl settings..."; {
/etc/sysctl.conf; do
[ -f "$conf" ] || continue
- out "Appling $conf ..."
+ out "Applying $conf ..."
sysctl -p "$conf"
done
}
diff --git a/rc.conf b/rc.conf
index 5259861..db164a2 100644
--- a/rc.conf
+++ b/rc.conf
@@ -6,4 +6,4 @@
keymap=
# Set dmesg level
-dmesg_level= \ No newline at end of file
+dmesg_level=
diff --git a/rc.lib b/rc.lib
index 183f6a2..6ec5252 100644
--- a/rc.lib
+++ b/rc.lib
@@ -138,7 +138,8 @@ random() {
run_hook() {
out "Running '$1' hooks..."
- for hook in "/etc/init/"*".$1" "/usr/lib/init/hooks/"*".$1"; do
+ for hook in "/etc/init/"*".$1" "/usr/lib/init/hooks/"*".$1" \
+ "/etc/init/$1/"* "/usr/lib/init/hooks/$1/"*; do
[ -f "$hook" ] || continue
out "Running '$hook'..."
. "$hook"
diff --git a/rc.shutdown b/rc.shutdown
index f159174..d357517 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -14,6 +14,7 @@ command -v sv >/dev/null &&
command -v svctl >/dev/null &&
out "Waiting for sysmgr services to stop..."; {
+ svctl stop /var/sysmgr/* 2>/dev/null
svctl kill /var/sysmgr/* 2>/dev/null
}