First commit of Shredos v2021.08.2_19_x86-64_0.32.014

This commit is contained in:
PartialVolume
2021-11-23 23:01:30 +00:00
commit 49625f0571
12651 changed files with 532695 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
config BR2_PACKAGE_INITSCRIPTS
bool
help
The basics startup scripts for both SysV and Busybox

27
package/initscripts/init.d/rcK Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/sh
# Stop all init scripts in /etc/init.d
# executing them in reversed numerical order.
#
for i in $(ls -r /etc/init.d/S??*) ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set stop
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i stop
;;
esac
done

27
package/initscripts/init.d/rcS Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/sh
# Start all init scripts in /etc/init.d
# executing them in numerical order.
#
for i in /etc/init.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done

View File

@@ -0,0 +1,12 @@
################################################################################
#
# initscripts
#
################################################################################
define INITSCRIPTS_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/etc/init.d
$(INSTALL) -D -m 0755 package/initscripts/init.d/* $(TARGET_DIR)/etc/init.d/
endef
$(eval $(generic-package))