aboutsummaryrefslogtreecommitdiff
path: root/repos/core/initscripts
diff options
context:
space:
mode:
Diffstat (limited to 'repos/core/initscripts')
-rw-r--r--repos/core/initscripts/.checksum6
-rw-r--r--repos/core/initscripts/.files9
-rw-r--r--repos/core/initscripts/abuild12
-rw-r--r--repos/core/initscripts/inittab4
-rwxr-xr-xrepos/core/initscripts/rc.boot116
-rw-r--r--repos/core/initscripts/rc.boot.local2
-rw-r--r--repos/core/initscripts/rc.modules2
-rwxr-xr-xrepos/core/initscripts/rc.shutdown58
-rw-r--r--repos/core/initscripts/rc.shutdown.local2
9 files changed, 0 insertions, 211 deletions
diff --git a/repos/core/initscripts/.checksum b/repos/core/initscripts/.checksum
deleted file mode 100644
index 66d8bb41..00000000
--- a/repos/core/initscripts/.checksum
+++ /dev/null
@@ -1,6 +0,0 @@
-1ac605ef6b89575ce73faef8a7a55d8c57f4530e70ea9b45fcf0ebc02b7e4fad inittab
-44a457da79602f6bc01f6c619be19422d3f7842dbc4e310c9932d91073b01438 rc.boot
-6407df1e6c4bb27a0197cdceda085317d365c87221347599f5eb3d98684925fc rc.boot.local
-8c62edf89b05313a2e13036fb00e50bcb67ea3a46b3e58131986c7be2ea2db1d rc.modules
-caa61c03a486b8c188a5bb976c170501465534857111f63fcc72d3b35fab271a rc.shutdown
-6407df1e6c4bb27a0197cdceda085317d365c87221347599f5eb3d98684925fc rc.shutdown.local
diff --git a/repos/core/initscripts/.files b/repos/core/initscripts/.files
deleted file mode 100644
index 88d6648e..00000000
--- a/repos/core/initscripts/.files
+++ /dev/null
@@ -1,9 +0,0 @@
-drwxr-xr-x root/root etc/
--rw-r--r-- root/root etc/inittab.new
--rwxr-xr-x root/root etc/rc.boot.local.new
--rwxr-xr-x root/root etc/rc.boot.new
--rwxr-xr-x root/root etc/rc.modules.new
--rwxr-xr-x root/root etc/rc.shutdown.local.new
--rwxr-xr-x root/root etc/rc.shutdown.new
-drwxr-xr-x root/root var/
-drwxr-xr-x root/root var/service/
diff --git a/repos/core/initscripts/abuild b/repos/core/initscripts/abuild
deleted file mode 100644
index 21dfb466..00000000
--- a/repos/core/initscripts/abuild
+++ /dev/null
@@ -1,12 +0,0 @@
-name=initscripts
-version=20250910
-release=1
-source="rc.boot rc.shutdown rc.boot.local rc.shutdown.local rc.modules inittab"
-
-build() {
- mkdir -p $PKG/etc $PKG/var/service
- for i in boot boot.local shutdown shutdown.local modules; do
- install -m755 $SRC/rc.$i $PKG/etc/rc.$i
- done
- install -m644 $SRC/inittab $PKG/etc/inittab
-}
diff --git a/repos/core/initscripts/inittab b/repos/core/initscripts/inittab
deleted file mode 100644
index 3eb7aa35..00000000
--- a/repos/core/initscripts/inittab
+++ /dev/null
@@ -1,4 +0,0 @@
-::sysinit:/etc/rc.boot
-::respawn:/usr/bin/runsvdir /var/service
-::ctrlaltdel:/sbin/reboot
-::shutdown:/etc/rc.shutdown
diff --git a/repos/core/initscripts/rc.boot b/repos/core/initscripts/rc.boot
deleted file mode 100755
index c30a73c6..00000000
--- a/repos/core/initscripts/rc.boot
+++ /dev/null
@@ -1,116 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-echo "> Alice booting..."
-
-echo "> Mounting virtual filesystems..."
-mountpoint -q /proc || mount -t proc proc /proc -o nosuid,noexec,nodev
-mountpoint -q /sys || mount -t sysfs sys /sys -o nosuid,noexec,nodev
-mountpoint -q /run || mount -t tmpfs run /run -o mode=0755,nosuid,nodev
-mountpoint -q /dev || mount -t devtmpfs dev /dev -o mode=0755,nosuid
-mkdir -p /run/lock /dev/pts /dev/shm /run/runit
-mountpoint -q /dev/pts || mount /dev/pts >/dev/null 2>&1 || mount -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec
-mountpoint -q /dev/shm || mount /dev/shm >/dev/null 2>&1 || mount -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev
-
-if [ "$(command -v udevd)" ]; then
- echo "> Starting udevd daemon..."
- udevd --daemon
- udevadm trigger --action=add --type=subsystems
- udevadm trigger --action=add --type=devices
- udevadm settle
-else
- # In the case the user may preffer mdevd as opposed to busybox mdev
- if [ ! -d "/var/service/mdevd" ]; then
- echo "> Starting mdev..."
- echo "/sbin/mdev" > /proc/sys/kernel/hotplug
- mdev -s
- fi
- find /sys -name 'modalias' -type f -exec cat '{}' + | sort -u | xargs modprobe -b -a 2>/dev/null
- ln -s /proc/self/fd /dev/fd
- ln -s fd/0 /dev/stdin
- ln -s fd/1 /dev/stdout
- ln -s fd/2 /dev/stderr
-fi
-
-echo "> Loading kernel modules..."
-if [ -f /etc/rc.modules ]; then
- while read -r module; do
- [ -n "$module" ] && ! echo "$module" | grep -q '^#' && modprobe "$module"
- done < /etc/rc.modules
-fi
-
-echo "> Bringing up loopback interface..."
-ip link set lo up
-
-echo "> Remounting root as read-only..."
-mount -o remount,ro /
-
-for arg in $(cat /proc/cmdline); do
- case $arg in
- fastboot) FASTBOOT=1;;
- forcefsck) FORCEFSCK="-f";;
- esac
-done
-
-if [ ! "$FASTBOOT" ]; then
- echo "> Running filesystem check..."
- fsck $FORCEFSCK -ATat noopts=_netdev
- if [ "$?" -gt 1 ]; then
- echo "*******************************************"
- echo "** Filesystem check failed **"
- echo "** You been dropped to maintenance shell **"
- echo "*******************************************"
- sulogin -p
- fi
-fi
-
-echo "> Enabling swap..."
-swapon -a
-
-echo "> Remounting root as read-write..."
-mount -o remount,rw /
-
-echo "> Mounting all filesystems..."
-mount -a
-
-if [ ! -f /etc/hostname ]; then
- echo localhost > /etc/hostname
-fi
-echo "> Setting hostname..."
-hostname -F /etc/hostname
-
-echo "> Cleaning stale PID files and /tmp..."
-find /var/run -name "*.pid" -delete
-find /tmp -xdev -mindepth 1 ! -name lost+found -delete
-
-if [ -f "/etc/sysctl.conf" ]; then
- echo "> Applying sysctl settings..."
- sysctl -q -p
-fi
-
-if [ -e /dev/rtc ] || [ -e /dev/rtc0 ]; then
- echo "> Restoring hardware clock..."
- hwclock -s -u
-fi
-
-if [ -f "/var/lib/random-seed" ]; then
- echo "> Seeding /dev/urandom..."
- cat /var/lib/random-seed >/dev/urandom
- rm -f /var/lib/random-seed
-fi
-
-if [ -d /sys/firmware/efi/efivars ]; then
- echo "> Mounting efivarfs..."
- mount -t efivarfs none /sys/firmware/efi/efivars
-fi
-
-dmesg >/var/log/dmesg.log
-
-if [ -x /etc/rc.boot.local ]; then
- echo "> Running local boot script..."
- /etc/rc.boot.local
-fi
-
-IFS=. read -r boottime _ < /proc/uptime
-echo "booted in ${boottime}s..."
diff --git a/repos/core/initscripts/rc.boot.local b/repos/core/initscripts/rc.boot.local
deleted file mode 100644
index 13f47935..00000000
--- a/repos/core/initscripts/rc.boot.local
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-
diff --git a/repos/core/initscripts/rc.modules b/repos/core/initscripts/rc.modules
deleted file mode 100644
index 690c7475..00000000
--- a/repos/core/initscripts/rc.modules
+++ /dev/null
@@ -1,2 +0,0 @@
-# list kernel modules
-
diff --git a/repos/core/initscripts/rc.shutdown b/repos/core/initscripts/rc.shutdown
deleted file mode 100755
index 255c4b5a..00000000
--- a/repos/core/initscripts/rc.shutdown
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-
-echo "> Shutting down system..."
-
-if [ -x /etc/rc.shutdown.local ]; then
- echo "> Running local shutdown scripts..."
- /etc/rc.shutdown.local
-fi
-
-if command -v udevadm >/dev/null 2>&1; then
- echo "> Stopping udev..."
- udevadm control --exit
-fi
-
-echo "> Stopping all services..."
-sv force-stop /var/service/* 2>/dev/null
-
-sleep 1
-
-if [ -w /var/lib/random-seed ]; then
- echo "> Saving random seed..."
- dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null
-fi
-
-if [ -e /dev/rtc ] || [ -e /dev/rtc0 ]; then
- echo "> Syncing hardware clock..."
- hwclock -w -u 2>/dev/null
-fi
-
-echo "> Terminating processes..."
-kill -s TERM -1 2>/dev/null
-sleep 2
-
-kill -s KILL -1 2>/dev/null
-sleep 1
-
-echo "> Disabling swap..."
-swapoff -a 2>/dev/null
-
-echo "> Bringing down network..."
-ip link set lo down 2>/dev/null
-
-for iface in $(ip link show | grep '^[0-9]' | awk -F: '{print $2}' | tr -d ' ' | grep -v '^lo$'); do
- ip link set "$iface" down 2>/dev/null
-done
-
-echo "> Unmounting filesystems..."
-umount -a -r -t noproc 2>/dev/null
-
-echo "> Remounting root as read-only..."
-mount -o remount,ro / 2>/dev/null
-
-echo "> Syncing filesystems..."
-sync
-
-sleep 1
-
-echo "> Shutdown complete. Bye!"
diff --git a/repos/core/initscripts/rc.shutdown.local b/repos/core/initscripts/rc.shutdown.local
deleted file mode 100644
index 13f47935..00000000
--- a/repos/core/initscripts/rc.shutdown.local
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-