summaryrefslogtreecommitdiffstats
path: root/boot-env/preboot/uclib-rootfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-06-03 19:00:24 +0200
committerDirk von Suchodoletz2009-06-03 19:00:24 +0200
commitc16c124612efe583d65187879b7dab833697f4c2 (patch)
tree436ffee2555ab4a6872a595659021a981c30dd6a /boot-env/preboot/uclib-rootfs
parentSome more steps for PreBoot ... (diff)
downloadcore-c16c124612efe583d65187879b7dab833697f4c2.tar.gz
core-c16c124612efe583d65187879b7dab833697f4c2.tar.xz
core-c16c124612efe583d65187879b7dab833697f4c2.zip
Minor PreBoot changes ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2924 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'boot-env/preboot/uclib-rootfs')
-rwxr-xr-xboot-env/preboot/uclib-rootfs/init14
1 files changed, 11 insertions, 3 deletions
diff --git a/boot-env/preboot/uclib-rootfs/init b/boot-env/preboot/uclib-rootfs/init
index 5dccd62c..cb893d44 100755
--- a/boot-env/preboot/uclib-rootfs/init
+++ b/boot-env/preboot/uclib-rootfs/init
@@ -78,12 +78,20 @@ nwif="eth0"
[ ! -f /proc/cpuinfo ] && mount -n -t proc proc /proc
[ ! -d /sys/class ] && mount -n -t sysfs sysfs /sys
+# load framebuffer modules if needed
+for mod in vesafb fbcon; do
+ if [ x != x$(find /lib/modules -name ${mod}.ko) ]; then
+ modprobe $mod || \
+ dialog --infobox "Module $mod did not load for some reason." 3 65
+ usleep 1000
+ fi
+done
+
# give startup information
dialog --infobox "Starting OpenSLX preboot environment ..." 3 65
-# load network adaptor modules
-for mod in ${ramfs_nicmods} \
- af_packet unix hid usbhid uhci-hcd ohci-hcd vesafb fbcon; do
+# load usb keyboard and network adaptor modules
+for mod in ${ramfs_nicmods} af_packet unix hid usbhid uhci-hcd ohci-hcd ; do
if [ x != x$(find /lib/modules -name ${mod}.ko) ]; then
modprobe $mod || \
dialog --infobox "Module $mod did not load for some reason." 3 65