Browse Source

Changed target/share/install/init to use only udev, and not hardcode any modprobe

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
666897dac1
1 changed files with 6 additions and 27 deletions
  1. +6
    -27
      target/share/install/init

+ 6
- 27
target/share/install/init

@ -1,13 +1,13 @@
#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
#
# Filename: target/share/install/init
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 - 2008 The OpenSDE Project
# Copyright (C) 2006 The T2 SDE Project
#
#
# More information can be found in the files COPYING and README.
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
@ -39,31 +39,10 @@ if [ ! -c /dev/zero ]; then
fi
echo "Populating /dev (u/dev) ..."
echo "" > /sys/kernel/uevent_helper
udevd --daemon
udevtrigger
echo "Running hotplug++ hardware detection ..."
/sbin/hotplug++ -synth
echo "/sbin/hotplug++" > /proc/sys/kernel/hotplug
echo "Loading additional subsystem and filesystem driver ..."
# hack to be removed
modprobe sbp2
# well some hardcoded help for now ...
modprobe ide-generic
modprobe ide-disk
modprobe ide-cd
modprobe sd_mod
modprobe sr_mod
modprobe sg
# the modular filesystems ...
for x in /lib/modules/*/kernel/fs/{*/,}*.*o ; do
x=${x##*/} ; x=${x%.*o}
modprobe $x
done
udevsettle
# Only print important stuff to console
# klogctl(8, NULL, 3);

Loading…
Cancel
Save