summaryrefslogtreecommitdiffstats
path: root/setup-alpine
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-04-20 14:21:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-04-20 14:21:10 +0000
commit4203d0b8405e0849f934a729a2f42442cb18e7de (patch)
tree59ff2b763188b267c66e408235c1e679ed084dc3 /setup-alpine
parent1f3c06bc20b2ee67076db0e32403fafe36726cf1 (diff)
downloadalpine-conf-4203d0b8405e0849f934a729a2f42442cb18e7de.tar.bz2
alpine-conf-4203d0b8405e0849f934a729a2f42442cb18e7de.tar.xz
switch to openrc
Diffstat (limited to 'setup-alpine')
-rw-r--r--setup-alpine24
1 files changed, 13 insertions, 11 deletions
diff --git a/setup-alpine b/setup-alpine
index 95f7a1f..8af4ac2 100644
--- a/setup-alpine
+++ b/setup-alpine
@@ -33,18 +33,20 @@ grep '^iface.*dhcp' $ROOT/etc/network/interfaces > /dev/null ||\
# set root password
[ -z "$NOCOMMIT" ] && while ! passwd ; do echo "Please retry." ; done
+for i in devfs dmesg; do
+ rc-update add $i sysinit
+done
+
# add some boot services
-rc_add -s 01 hwclock
-rc_add -s 04 modutils
-rc_add -s 06 procps
-rc_add -s 08 hostname
+for i in hwclock modules sysctl hostname keymap syslog bootmisc; do
+ rc-update add $i boot
+done
-rc_add -s 20 keymap
-rc_add -s 20 -k syslog
-rc_add -s 22 bootmisc.sh
-rc_add -s 24 -k networking
+for i in networking; do
+ rc-update add $i default
+done
# start up the services
-for i in hwclock modutils procps hostname syslog bootmisc.sh networking ; do
- /etc/init.d/$i start
-done
+rc sysinit
+rc boot
+rc default