aboutsummaryrefslogtreecommitdiff
path: root/rootfs/etc/runit/1
blob: f693a4170c524148c31d0f57532896c307c5117d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# mount all drives in /etc/fstab
mount -a

# clear run folder
rm -rf /var/run
mkdir -p /var/run

# update hostname
hostname -F /etc/hostname

# up all network interfaces
ifup -a -f

# start system log
syslogd

# go to stage 2 (normally runit (/sbin/init) does this by itself, but this is
# using busybox's weird init system)
(setsid /etc/runit/2 1> /dev/null 2> /dev/null &)