aboutsummaryrefslogtreecommitdiff
path: root/local/etc/runit
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-23 00:23:36 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-04-23 00:31:02 -0400
commit477bfced7fdaa525f9cc7f13afdacb2a48f07379 (patch)
treefc1e657add7456e7c791d7729c08e37feae4567e /local/etc/runit
parent42f57801fc0a0842aedbb8d645641710f4877c87 (diff)
downloadmin-477bfced7fdaa525f9cc7f13afdacb2a48f07379.tar.gz
min-477bfced7fdaa525f9cc7f13afdacb2a48f07379.tar.xz
Massive changes, ssh and Nginx work!HEADmaster
Bump to 4.16.3 in /boot/syslinux.cfg Add `ssh`, `nobody`, and `nogroup`, in `/etc/passwd` and `/etc/group` Updated the init script to use `mdev` Added a service definition for a getty on tty0 Added a service definition for sshd Added busybox udhcpc `default.script` I *still need to check the license* ( Copied from my Gentoo installation, and works ) Updated readme.md to reflect the fact that we pull in the commands from `pfx` and you'll need to add `/lib/ld-musl-x86_64.so.1` or change the PATH in `./inc` Added rsync, ncdu xz and grub. Removed tar-pfx.sh Replaced with cpio-pfx.sh added `conf.sh` which will be taking care of basic system configuration for now Change configuration directory for libressl Enable wide chars in `ncurses` Use `/etc` for SSH configuration files Remove make clean from tree.sh and xz.sh Added relevant files to sources.lst
Diffstat (limited to 'local/etc/runit')
-rwxr-xr-xlocal/etc/runit/120
1 files changed, 10 insertions, 10 deletions
diff --git a/local/etc/runit/1 b/local/etc/runit/1
index 671b689..b22c9ef 100755
--- a/local/etc/runit/1
+++ b/local/etc/runit/1
@@ -2,26 +2,26 @@
. /etc/profile
-printf "Starting *MIN*imum system\n"
+set -x
-mkdir -p /dev
-mountpoint -q /dev || mount -t devtmpfs dev /dev -o mode=0755,nosuid
-mkdir -p /dev/pts
-mountpoint -q /dev/pts || mount -n -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec,noatime
+printf "Starting *MIN*imum system\n"
mkdir -p /proc /sys
mountpoint -q /proc || mount -t proc proc /proc -o nosuid,noexec,nodev,hidepid=2
mountpoint -q /sys || mount -t sysfs sys /sys -o nosuid,noexec,nodev
-mkdir -p /dev/shm
-mountpoint -q /dev/shm || mount -n -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev,noatime
+mkdir -p /dev/pts
+mountpoint -q /dev/pts || mount -n -t devpts devpts /dev/pts -o \
+ mode=0620,gid=5,nosuid,noexec,noatime
+mdev -s
-# It's going to be interesting to figure out what this one does.
-ln -s /proc/self/fd /dev/fd
+mkdir -p /dev/shm
+mountpoint -q /dev/shm || mount -n -t tmpfs shm /dev/shm -o \
+ mode=1777,nosuid,nodev,noatime
mountpoint -q /sys/fs/cgroup || mount -n -t cgroup nodev /sys/fs/cgroup
printf "Setting up loopback.\n"
[ -d /sys/class/net/lo ] && ifconfig lo up
-
+if [ -e /etc/net ] ; then . /etc/net ; fi