if test "$initstyle" == "gentoo"; then
echo ">>> Installing special init-style magic ... "
+ # force /lib/rc/sh even if we don't have it in older stages
+ $_CHROOT_SH mkdir /lib 2>/dev/null || :
+ $_CHROOT_SH mkdir /lib/rc 2>/dev/null || :
+ $_CHROOT_SH mkdir /lib/rc/sh 2>/dev/null || :
+
$_CAT "$__DISTRIBDIR"/gentoo/init-vserver.sh | \
$_CHROOT_SH truncate /lib/rc/sh/init-vserver.sh
$_CHROOT_SH chmod 0755 /lib/rc/sh/init-vserver.sh
if $_CHROOT_SH testfile /etc/syslog-ng/syslog-ng.conf; then
echo ">>> Fixing syslog-ng.conf ... "
chrootsed /etc/syslog-ng/syslog-ng.conf \
- -e 's:pipe("/proc/kmsg"); ::' \
+ -e '/proc\/kmsg/d' \
-e 's:\(.*console_all.*\):#\1:g'
fi