From 4203d0b8405e0849f934a729a2f42442cb18e7de Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 20 Apr 2009 14:21:10 +0000 Subject: switch to openrc --- setup-alpine | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'setup-alpine') 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 -- cgit v1.2.3