From b9dfdaaa1ae0148dd8a3e78508c636636e7396a6 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 7 Feb 2024 16:15:21 +0100 Subject: web server done --- rootfs/etc/init.d/00_mounts | 3 +++ rootfs/etc/init.d/10_hostname | 3 +++ rootfs/etc/init.d/10_network | 3 +++ rootfs/etc/init.d/rcS | 9 --------- 4 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 rootfs/etc/init.d/00_mounts create mode 100644 rootfs/etc/init.d/10_hostname create mode 100644 rootfs/etc/init.d/10_network delete mode 100755 rootfs/etc/init.d/rcS (limited to 'rootfs/etc/init.d') diff --git a/rootfs/etc/init.d/00_mounts b/rootfs/etc/init.d/00_mounts new file mode 100644 index 0000000..804880c --- /dev/null +++ b/rootfs/etc/init.d/00_mounts @@ -0,0 +1,3 @@ +#!/bin/sh +# mount all drives in /etc/fstab +mount -a diff --git a/rootfs/etc/init.d/10_hostname b/rootfs/etc/init.d/10_hostname new file mode 100644 index 0000000..064cea2 --- /dev/null +++ b/rootfs/etc/init.d/10_hostname @@ -0,0 +1,3 @@ +#!/bin/sh +# update hostname +hostname -F /etc/hostname diff --git a/rootfs/etc/init.d/10_network b/rootfs/etc/init.d/10_network new file mode 100644 index 0000000..03dc3f8 --- /dev/null +++ b/rootfs/etc/init.d/10_network @@ -0,0 +1,3 @@ +#!/bin/sh +# up all network interfaces +ifup -a -f diff --git a/rootfs/etc/init.d/rcS b/rootfs/etc/init.d/rcS deleted file mode 100755 index b819ce4..0000000 --- a/rootfs/etc/init.d/rcS +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -# core -mount -a # mount all drives in /etc/fstab -hostname -F /etc/hostname # update hostname - -# system services -syslogd # system log -ifplugd # automatically link hot-plugged ethernet connections - -- cgit v1.2.3