Commit 4203d0b8 authored by Natanael Copa's avatar Natanael Copa

switch to openrc

parent 1f3c06bc
V=2.0_alpha4
V=2.0_alpha5
P=alpine-conf
PV=$(P)-$(V)
APKF=$(PV).apk
......
......@@ -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
......@@ -5,8 +5,8 @@ PREFIX=
MAPDIR="$ROOT/usr/share/bkeymaps"
if [ -f "$ROOT/etc/conf.d/keymap" ]; then
. "$ROOT/etc/conf.d/keymap"
if [ -f "$ROOT/etc/conf.d/keymaps" ]; then
. "$ROOT/etc/conf.d/keymaps"
variant=$(basename $KEYMAP .bmap.gz)
fi
......@@ -37,7 +37,7 @@ select_layout() {
setup_mapfile() {
local name=$(basename $1)
local conf="$ROOT/etc/conf.d/keymap"
local conf="$ROOT/etc/conf.d/keymaps"
mkdir -p "$ROOT/etc/keymap"
mkdir -p "$ROOT/etc/conf.d/"
if gzip -9 -c "$1" > "$ROOT/etc/keymap/$name.gz" ; then
......@@ -45,7 +45,7 @@ setup_mapfile() {
echo "KEYMAP=/etc/keymap/$name.gz" >> "$conf"
# we actually load the keymap now
zcat /etc/keymap/$name.gz | loadkmap
rc_add -s 20 keymap
rc-update add keymaps boot
goodbye 0
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment