The following changes were made:

* Configuration moved to new CONFIG directory to separate from usher
  * Made various improvements to most init scripts
  * Added dependency to perl for update-rc
This commit is contained in:
2018-07-28 14:30:08 -05:00
parent 7de71fa1cd
commit 843c8721f1
21 changed files with 644 additions and 310 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: $local_fs
# Required-Start: udev checkfs
# Required-Start: udev checkfs checkroot
# Should-Start:
# Required-Stop: swap
# Should-Stop:
@@ -9,9 +9,9 @@
# Default-Stop: 0 6
# Short-Description: Mounts/unmounts local filesystems
# Description: Remounts root filesystem read/write and mounts all
# remaining local filesystems defined in /etc/fstab.
# Remounts root filesystem read-only and unmounts
# remaining filesystems on stop.
# remaining local filesystems defined in /etc/fstab
# During stop remounts root filesystem read-only and
# unmounts remaining filesystems.
# X-Required: true
### END INIT INFO
@@ -21,24 +21,11 @@
case "$1" in
start)
log_init_msg "Remounting root file system in read-write mode"
mount -o remount,rw / >/dev/null && log_success_msg || log_failure_msg
if [ -f /fastboot ]; then
log_init_msg "Clearing /fastboot"
rm /fastboot && log_success_msg || log_failure_msg
fi
if [ -f /forcefsck ]; then
log_init_msg "Clearing /forcefsk"
rm /forcefsck && log_success_msg || log_failure_msg
fi
log_init_msg "Mounting remaining file systems"
log_init_msg "Mounting local file systems"
mount -a -O no_netdev >/dev/null && log_success_msg || log_failure_msg
;;
stop)
log_init_msg "Unmounting all file systems"
log_init_msg "Unmounting local file systems"
umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts \
>/dev/null && log_success_msg || log_failure_msg