diff options
-rw-r--r-- | LICENSE | 2 | ||||
-rwxr-xr-x | rc.boot | 4 | ||||
-rw-r--r-- | rc.conf | 2 | ||||
-rw-r--r-- | rc.lib | 3 | ||||
-rwxr-xr-x | rc.shutdown | 1 |
5 files changed, 7 insertions, 5 deletions
@@ -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 @@ -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 } @@ -6,4 +6,4 @@ keymap= # Set dmesg level -dmesg_level=
\ No newline at end of file +dmesg_level= @@ -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 } |