1
Files
qnap-rc-scripts/rcS
2016-09-04 22:20:40 +03:00

30 lines
459 B
Bash
Executable File

#!/bin/sh
. /etc/profile
# Start all init scripts in /etc/init.d
# executing them in numerical order.
#
for i in /etc/rcS_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
)
;;
*atalk)
$i start &
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done