summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/ubuntu/functions-default
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-07-11 12:56:26 +0200
committerDirk von Suchodoletz2007-07-11 12:56:26 +0200
commit4c041f4b5eff942d9e10b50fd62407b9058439ef (patch)
tree2e2f4ec9035b0b165cf1d181e00985e6108372a1 /initramfs/distro-specs/ubuntu/functions-default
parent* fixed crashing bug introduced with last commit (diff)
downloadcore-4c041f4b5eff942d9e10b50fd62407b9058439ef.tar.gz
core-4c041f4b5eff942d9e10b50fd62407b9058439ef.tar.xz
core-4c041f4b5eff942d9e10b50fd62407b9058439ef.zip
Some cleanup for ubuntu ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1236 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/distro-specs/ubuntu/functions-default')
-rw-r--r--initramfs/distro-specs/ubuntu/functions-default17
1 files changed, 8 insertions, 9 deletions
diff --git a/initramfs/distro-specs/ubuntu/functions-default b/initramfs/distro-specs/ubuntu/functions-default
index e3740bac..52705a5d 100644
--- a/initramfs/distro-specs/ubuntu/functions-default
+++ b/initramfs/distro-specs/ubuntu/functions-default
@@ -16,16 +16,14 @@
# distro specific stuff to initialize
preinit () {
- echo "Creating dhcp user"
+ [ $DEBUGLEVEL -ge 1 ] && echo "Creating dhcp user"
echo "dhcp:x:101:">>/etc/group
echo "dhcp:x:101:101::/nonexistent:/bin/false" >>/etc/passwd
-
# load unix module to provide sockets (is compiled into kernel on
# the live CDs!?)
- modprobe ${MODPRV} unix || error "$df_errumod" nonfatal
+ modprobe ${MODPRV} unix 2>/dev/null || error "$df_errumod" nonfatal
}
-
# overwrite settings set by hwautocfg, pathes will change for newer
# Xorg version 7.X
displayvars (){
@@ -172,7 +170,7 @@ keytable () {
# consolefont
consolefont () {
-echo -e "setfont ${CONSOLE_FONT} >${LOGFILE} 2>&1" \
+echo -e "\tsetfont ${CONSOLE_FONT} >${LOGFILE} 2>&1" \
>>/mnt/etc/${D_INITDIR}/boot.slx
}
@@ -343,6 +341,7 @@ config_kdm_template
# configure hal, dbus, resmgr and services like that
config_dreshal () {
if [ "x$start_dreshal" = "xyes" ]; then
+ testmkd /mnt/var/lib/dbus
rllinker "dbus" 17 20
fi
}
@@ -358,14 +357,14 @@ case "$switch" in
init)
echo -e "#!/bin/sh\n# skeleton of /etc/${D_INITDIR}/$name written \
from $0\n# after you applied changes to the creation scripts you have to \
-rerun\n# the mkdxsinitrd script to get them applied" \
- >/mnt/etc/${D_INITDIR}/$name
- echo -e "\n\ncase \"\$1\" in\n start)\techo -n \"$info\"" \
+rerun\n# the mkdxsinitrd script to get them applied\n\n\
+. /lib/lsb/init-functions\n" >/mnt/etc/${D_INITDIR}/$name
+ echo -e "\n\ncase \"\$1\" in\n start)\n\tlog_begin_msg \"* $info\"" \
>>/mnt/etc/${D_INITDIR}/$name
chmod u+x /mnt/etc/${D_INITDIR}/$name
;;
close)
- echo -e "\t;;\n stop)\n\t;;\nesac\nexit 0" \
+ echo -e "\tlog_end_msg 0\n\t;;\n stop)\n\t;;\nesac\nexit 0" \
>>/mnt/etc/${D_INITDIR}/$name
;;
esac