aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnetwork2
-rw-r--r--rc.conf.5.txt11
-rwxr-xr-xrc.sysinit74
3 files changed, 39 insertions, 48 deletions
diff --git a/network b/network
index 2439dba..322082c 100755
--- a/network
+++ b/network
@@ -19,7 +19,7 @@ need_legacy() {
deprecated() {
printf "${C_FAIL}Warning:${C_CLEAR} Your network settings are deprecated.\n"
- printf " Please refer to /etc/rc.conf on how to define a single wired\n"
+ printf " Please refer to 'man 5 rc.conf' on how to define a single wired\n"
printf " connection, or use a utility such as netcfg.\n"
}
diff --git a/rc.conf.5.txt b/rc.conf.5.txt
index c4087d0..b979f45 100644
--- a/rc.conf.5.txt
+++ b/rc.conf.5.txt
@@ -200,16 +200,7 @@ Default: "no"
*NETWORKS=*
-Enable these netcfg profiles at boot-up. These replace the network
-configuration above and are useful if you happen to need more advanced
-network features than the simple network service supports,
-such as multiple network configurations (ie, laptop users).
- - set to 'menu' to present a menu during boot-up (dialog package required)
- - prefix an entry with a ! to disable it
-
-Network profiles are found in /etc/network.d
-There is a template file included there that can be used to create
-new profiles. This requires the netcfg package.
+This functionality is deprecated, please refer to the 'netcfg' documentation.
DAEMONS[[D]]
------------
diff --git a/rc.sysinit b/rc.sysinit
index 3528bb2..f91190c 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -36,6 +36,43 @@ run_hook sysinit_start
# log all console messages
bootlogd -p /run/bootlogd.pid
+if [[ -s /etc/locale.conf ]]; then
+ parse_envfile /etc/locale.conf "LANG"
+ [[ $LANG ]] && LOCALE=$LANG
+fi
+if [[ ${LOCALE,,} =~ utf ]]; then
+ stat_busy "Setting Consoles to UTF-8 mode"
+ # UTF-8 consoles are default since 2.6.24 kernel
+ # this code is needed not only for older kernels,
+ # but also when user has set vt.default_utf8=0 but LOCALE is *.UTF-8.
+ for i in /dev/tty[0-9]*; do
+ kbd_mode -u < ${i}
+ printf "\e%%G" > ${i}
+ done
+ echo 1 >| /sys/module/vt/parameters/default_utf8
+ stat_done
+else
+ stat_busy "Setting Consoles to legacy mode"
+ # make non-UTF-8 consoles work on 2.6.24 and newer kernels
+ for i in /dev/tty[0-9]*; do
+ kbd_mode -a < ${i}
+ printf "\e%%@" > ${i}
+ done
+ echo 0 >| /sys/module/vt/parameters/default_utf8
+ stat_done
+fi
+
+if [[ -s /etc/vconsole.conf ]]; then
+ parse_envfile /etc/vconsole.conf "${vconsolevars[@]}"
+ [[ $FONT ]] && CONSOLEFONT=$FONT
+ [[ $FONT_MAP ]] && CONSOLEMAP=$FONT_MAP
+fi
+[[ $KEYMAP ]] &&
+ status "Loading Keyboard Map: $KEYMAP" loadkeys -q $KEYMAP
+
+# Set console font if required
+set_consolefont
+
if [[ ! -a /usr/lib ]] ; then
printf "${C_FAIL}/usr is not mounted. This is not supported.${C_OTHER}\n"
fi
@@ -144,43 +181,6 @@ if [[ $HOSTNAME ]]; then
echo "$HOSTNAME" >| /proc/sys/kernel/hostname && stat_done || stat_fail
fi
-if [[ -s /etc/locale.conf ]]; then
- parse_envfile /etc/locale.conf "LANG"
- [[ $LANG ]] && LOCALE=$LANG
-fi
-if [[ ${LOCALE,,} =~ utf ]]; then
- stat_busy "Setting Consoles to UTF-8 mode"
- # UTF-8 consoles are default since 2.6.24 kernel
- # this code is needed not only for older kernels,
- # but also when user has set vt.default_utf8=0 but LOCALE is *.UTF-8.
- for i in /dev/tty[0-9]*; do
- kbd_mode -u < ${i}
- printf "\e%%G" > ${i}
- done
- echo 1 >| /sys/module/vt/parameters/default_utf8
- stat_done
-else
- stat_busy "Setting Consoles to legacy mode"
- # make non-UTF-8 consoles work on 2.6.24 and newer kernels
- for i in /dev/tty[0-9]*; do
- kbd_mode -a < ${i}
- printf "\e%%@" > ${i}
- done
- echo 0 >| /sys/module/vt/parameters/default_utf8
- stat_done
-fi
-
-if [[ -s /etc/vconsole.conf ]]; then
- parse_envfile /etc/vconsole.conf "${vconsolevars[@]}"
- [[ $FONT ]] && CONSOLEFONT=$FONT
- [[ $FONT_MAP ]] && CONSOLEMAP=$FONT_MAP
-fi
-[[ $KEYMAP ]] &&
- status "Loading Keyboard Map: $KEYMAP" loadkeys -q $KEYMAP
-
-# Set console font if required
-set_consolefont
-
stat_busy "Saving dmesg Log"
if [[ -e /proc/sys/kernel/dmesg_restrict ]] &&
(( $(< /proc/sys/kernel/dmesg_restrict) == 1 )); then