From 5c56aefa6bbb272dfb6f402a19d0cfc682e89ce5 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 12 Sep 2006 15:42:58 +0000 Subject: git-svn-id: http://phraktured.net/archiso@7 00a9fe69-e71b-0410-bb23-df0e5024db41 --- default-config/etc/rc.sysinit-proxy | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 default-config/etc/rc.sysinit-proxy (limited to 'default-config/etc/rc.sysinit-proxy') diff --git a/default-config/etc/rc.sysinit-proxy b/default-config/etc/rc.sysinit-proxy new file mode 100644 index 0000000..7b1bb50 --- /dev/null +++ b/default-config/etc/rc.sysinit-proxy @@ -0,0 +1,14 @@ +#!/bin/bash +# we need a proxy script here to convert some /proc/cmdline +# parameters to rc.conf settings. + +LOCALE_DEFAULT="en_US.UTF-8" +TIMEZONE_DEFAULT="America/Chicago" +KEYMAP_DEFAULT="us" + +sed -i "s|##LOCALE##|$(cmdline_param locale ${LOCALE_DEFAULT})|" /etc/rc.conf +sed -i "s|##TIMEZONE##|$(cmdline_param timezone ${TIMEZONE_DEFAULT})|" /etc/rc.conf +sed -i "s|##KEYMAP##|$(cmdline_param keymap ${KEYMAP_DEFAULT})|" /etc/rc.conf + +#now go to the real sysinit +exec /etc/rc.sysinit -- cgit v1.2.3-70-g09d2