When searching for shell scripts in /etc/init.d with grep "^#!" /etc/init.d/S??* we find that all of them are scripts:
Code: Select all
/etc/init.d/S01syslogd:#!/bin/sh
/etc/init.d/S02klogd:#!/bin/sh
/etc/init.d/S10udev:#!/bin/sh
/etc/init.d/S30dbus:#!/bin/sh
/etc/init.d/S31bluetooth:#!/bin/sh
/etc/init.d/S40network:#!/bin/sh
/etc/init.d/S41dhcpcd:#!/bin/sh
/etc/init.d/S49ntp:#!/bin/sh
/etc/init.d/S50proftpd:#!/bin/sh
/etc/init.d/S50sshd:#!/bin/sh
/etc/init.d/S91smb:#!/bin/sh
/etc/init.d/S99user:#!/bin/sh
Code: Select all
#!/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
dmesg (before):
Code: Select all
...
[ 119.387871] EXT4-fs (loop8): re-mounted. Opts: (null). Quota mode: disabled.
[ 119.387919] ext4 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)
Code: Select all
...
[ 85.368526] EXT4-fs (loop8): re-mounted. Opts: (null). Quota mode: disabled.
[ 85.368563] ext4 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)