diff options
author | Dirk von Suchodoletz | 2009-06-03 19:00:24 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-06-03 19:00:24 +0200 |
commit | c16c124612efe583d65187879b7dab833697f4c2 (patch) | |
tree | 436ffee2555ab4a6872a595659021a981c30dd6a /boot-env | |
parent | Some more steps for PreBoot ... (diff) | |
download | core-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')
-rwxr-xr-x | boot-env/preboot/preboot.sh | 2 | ||||
-rwxr-xr-x | boot-env/preboot/uclib-rootfs/init | 14 |
2 files changed, 12 insertions, 4 deletions
diff --git a/boot-env/preboot/preboot.sh b/boot-env/preboot/preboot.sh index ae96a637..f682f067 100755 --- a/boot-env/preboot/preboot.sh +++ b/boot-env/preboot/preboot.sh @@ -69,7 +69,7 @@ wget --post-data "$postdata" -O /tmp/cfg-error \ dialog --infobox "Loading kernel of ${sysname} ..." 3 65 wget -q -O /tmp/kernel $boot_uri/$kernel dialog --infobox "Loading initial ramfs of ${sysname} ..." 3 65 -wget -O /tmp/initramfs $boot_uri/$initramfs +wget -q -O /tmp/initramfs $boot_uri/$initramfs # read primary IP configuration to pass it on (behaviour like IPAPPEND=1 of # PXElinux) 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 |