mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Die IDE/SCSI/SATA/USB-Erkennung erstellt nun schoene Ramdisks :D
Kernel ist jetzt noch modularer, da keine IDE/FS-Treiber vorhanden sind. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@561 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -33,7 +33,8 @@ echo "Starting syslogd"
|
||||
syslogd -O /dev/tty4
|
||||
|
||||
echo "Starting udev daemon"
|
||||
/sbin/udevstart
|
||||
/sbin/udevd --daemon
|
||||
/sbin/udevtrigger
|
||||
/sbin/udevsettle
|
||||
|
||||
echo "Loading installer... Please wait!"
|
||||
/bin/sleep 2
|
||||
echo "Loading Installer..."
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Linux kernel version: 2.6.16.50-ipfire
|
||||
# Wed May 9 08:33:53 2007
|
||||
# Thu May 17 13:06:57 2007
|
||||
#
|
||||
CONFIG_X86_32=y
|
||||
CONFIG_SEMAPHORE_SLEEPERS=y
|
||||
@@ -618,7 +618,6 @@ CONFIG_KLIPS_ENC_CRYPTOAPI=y
|
||||
CONFIG_KLIPS_ENC_1DES=y
|
||||
CONFIG_KLIPS_ENC_3DES=y
|
||||
CONFIG_KLIPS_ENC_AES=y
|
||||
CONFIG_KLIPS_ENC_NULL=y
|
||||
CONFIG_KLIPS_IPCOMP=y
|
||||
CONFIG_KLIPS_DEBUG=y
|
||||
|
||||
@@ -740,7 +739,7 @@ CONFIG_PNPACPI=y
|
||||
#
|
||||
# Block devices
|
||||
#
|
||||
CONFIG_BLK_DEV_FD=y
|
||||
CONFIG_BLK_DEV_FD=m
|
||||
# CONFIG_BLK_DEV_XD is not set
|
||||
# CONFIG_PARIDE is not set
|
||||
CONFIG_BLK_CPQ_DA=m
|
||||
@@ -765,32 +764,32 @@ CONFIG_BLK_DEV_INITRD=y
|
||||
# ATA/ATAPI/MFM/RLL support
|
||||
#
|
||||
CONFIG_IDE=y
|
||||
CONFIG_BLK_DEV_IDE=y
|
||||
CONFIG_BLK_DEV_IDE=m
|
||||
|
||||
#
|
||||
# Please see Documentation/ide.txt for help/info on IDE drives
|
||||
#
|
||||
# CONFIG_BLK_DEV_IDE_SATA is not set
|
||||
# CONFIG_BLK_DEV_HD_IDE is not set
|
||||
CONFIG_BLK_DEV_IDEDISK=y
|
||||
CONFIG_BLK_DEV_IDEDISK=m
|
||||
# CONFIG_IDEDISK_MULTI_MODE is not set
|
||||
CONFIG_BLK_DEV_IDECD=y
|
||||
CONFIG_BLK_DEV_IDECD=m
|
||||
# CONFIG_BLK_DEV_IDETAPE is not set
|
||||
CONFIG_BLK_DEV_IDEFLOPPY=y
|
||||
CONFIG_BLK_DEV_IDEFLOPPY=m
|
||||
# CONFIG_BLK_DEV_IDESCSI is not set
|
||||
# CONFIG_IDE_TASK_IOCTL is not set
|
||||
|
||||
#
|
||||
# IDE chipset support/bugfixes
|
||||
#
|
||||
CONFIG_IDE_GENERIC=y
|
||||
CONFIG_IDE_GENERIC=m
|
||||
CONFIG_BLK_DEV_CMD640=y
|
||||
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
|
||||
CONFIG_BLK_DEV_IDEPNP=y
|
||||
CONFIG_BLK_DEV_IDEPCI=y
|
||||
CONFIG_IDEPCI_SHARE_IRQ=y
|
||||
# CONFIG_BLK_DEV_OFFBOARD is not set
|
||||
CONFIG_BLK_DEV_GENERIC=y
|
||||
CONFIG_BLK_DEV_GENERIC=m
|
||||
CONFIG_BLK_DEV_OPTI621=m
|
||||
CONFIG_BLK_DEV_RZ1000=m
|
||||
CONFIG_BLK_DEV_IDEDMA_PCI=y
|
||||
@@ -968,12 +967,11 @@ CONFIG_SCSI_NCR53C8XX_SYNC=20
|
||||
CONFIG_SCSI_MCA_53C9X=m
|
||||
CONFIG_SCSI_PAS16=m
|
||||
CONFIG_SCSI_PSI240I=m
|
||||
CONFIG_SCSI_QLOGIC_FAS=m
|
||||
CONFIG_SCSI_QLOGIC_FC=m
|
||||
# CONFIG_SCSI_QLOGIC_FC_FIRMWARE is not set
|
||||
# CONFIG_SCSI_QLOGIC_FAS is not set
|
||||
# CONFIG_SCSI_QLOGIC_FC is not set
|
||||
CONFIG_SCSI_QLOGIC_1280=m
|
||||
# CONFIG_SCSI_QLA_FC is not set
|
||||
CONFIG_SCSI_LPFC=m
|
||||
# CONFIG_SCSI_LPFC is not set
|
||||
CONFIG_SCSI_SIM710=m
|
||||
CONFIG_53C700_IO_MAPPED=y
|
||||
CONFIG_SCSI_SYM53C416=m
|
||||
@@ -1002,7 +1000,7 @@ CONFIG_MD_LINEAR=m
|
||||
CONFIG_MD_RAID0=m
|
||||
CONFIG_MD_RAID1=m
|
||||
# CONFIG_MD_RAID10 is not set
|
||||
# CONFIG_MD_RAID5 is not set
|
||||
CONFIG_MD_RAID5=m
|
||||
# CONFIG_MD_RAID6 is not set
|
||||
CONFIG_MD_MULTIPATH=m
|
||||
# CONFIG_MD_FAULTY is not set
|
||||
@@ -1805,16 +1803,16 @@ CONFIG_EXT2_FS_XATTR=y
|
||||
CONFIG_EXT2_FS_POSIX_ACL=y
|
||||
CONFIG_EXT2_FS_SECURITY=y
|
||||
# CONFIG_EXT2_FS_XIP is not set
|
||||
CONFIG_EXT3_FS=y
|
||||
CONFIG_EXT3_FS=m
|
||||
CONFIG_EXT3_FS_XATTR=y
|
||||
CONFIG_EXT3_FS_POSIX_ACL=y
|
||||
CONFIG_EXT3_FS_SECURITY=y
|
||||
CONFIG_JBD=y
|
||||
CONFIG_JBD=m
|
||||
# CONFIG_JBD_DEBUG is not set
|
||||
CONFIG_FS_MBCACHE=y
|
||||
CONFIG_REISER4_FS=y
|
||||
CONFIG_REISER4_FS=m
|
||||
# CONFIG_REISER4_DEBUG is not set
|
||||
CONFIG_REISERFS_FS=y
|
||||
CONFIG_REISERFS_FS=m
|
||||
# CONFIG_REISERFS_CHECK is not set
|
||||
CONFIG_REISERFS_PROC_INFO=y
|
||||
CONFIG_REISERFS_FS_XATTR=y
|
||||
@@ -1833,7 +1831,7 @@ CONFIG_XFS_SECURITY=y
|
||||
CONFIG_XFS_POSIX_ACL=y
|
||||
# CONFIG_XFS_RT is not set
|
||||
# CONFIG_OCFS2_FS is not set
|
||||
CONFIG_MINIX_FS=y
|
||||
# CONFIG_MINIX_FS is not set
|
||||
# CONFIG_ROMFS_FS is not set
|
||||
CONFIG_INOTIFY=y
|
||||
# CONFIG_QUOTA is not set
|
||||
@@ -1846,7 +1844,7 @@ CONFIG_DNOTIFY=y
|
||||
#
|
||||
# CD-ROM/DVD Filesystems
|
||||
#
|
||||
CONFIG_ISO9660_FS=y
|
||||
CONFIG_ISO9660_FS=m
|
||||
CONFIG_JOLIET=y
|
||||
# CONFIG_ZISOFS is not set
|
||||
CONFIG_UDF_FS=m
|
||||
@@ -1944,7 +1942,7 @@ CONFIG_MSDOS_PARTITION=y
|
||||
# Native Language Support
|
||||
#
|
||||
CONFIG_NLS=y
|
||||
CONFIG_NLS_DEFAULT="cp437"
|
||||
CONFIG_NLS_DEFAULT="cp850"
|
||||
# CONFIG_NLS_CODEPAGE_437 is not set
|
||||
# CONFIG_NLS_CODEPAGE_737 is not set
|
||||
# CONFIG_NLS_CODEPAGE_775 is not set
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Linux kernel version: 2.6.16.50-ipfire
|
||||
# Wed May 9 08:34:23 2007
|
||||
# Thu May 17 13:07:20 2007
|
||||
#
|
||||
CONFIG_X86_32=y
|
||||
CONFIG_SEMAPHORE_SLEEPERS=y
|
||||
@@ -624,7 +624,6 @@ CONFIG_KLIPS_ENC_CRYPTOAPI=y
|
||||
CONFIG_KLIPS_ENC_1DES=y
|
||||
CONFIG_KLIPS_ENC_3DES=y
|
||||
CONFIG_KLIPS_ENC_AES=y
|
||||
CONFIG_KLIPS_ENC_NULL=y
|
||||
CONFIG_KLIPS_IPCOMP=y
|
||||
CONFIG_KLIPS_DEBUG=y
|
||||
|
||||
@@ -746,7 +745,7 @@ CONFIG_PNPACPI=y
|
||||
#
|
||||
# Block devices
|
||||
#
|
||||
CONFIG_BLK_DEV_FD=y
|
||||
CONFIG_BLK_DEV_FD=m
|
||||
# CONFIG_BLK_DEV_XD is not set
|
||||
# CONFIG_PARIDE is not set
|
||||
CONFIG_BLK_CPQ_DA=m
|
||||
@@ -771,32 +770,32 @@ CONFIG_BLK_DEV_INITRD=y
|
||||
# ATA/ATAPI/MFM/RLL support
|
||||
#
|
||||
CONFIG_IDE=y
|
||||
CONFIG_BLK_DEV_IDE=y
|
||||
CONFIG_BLK_DEV_IDE=m
|
||||
|
||||
#
|
||||
# Please see Documentation/ide.txt for help/info on IDE drives
|
||||
#
|
||||
# CONFIG_BLK_DEV_IDE_SATA is not set
|
||||
# CONFIG_BLK_DEV_HD_IDE is not set
|
||||
CONFIG_BLK_DEV_IDEDISK=y
|
||||
CONFIG_BLK_DEV_IDEDISK=m
|
||||
# CONFIG_IDEDISK_MULTI_MODE is not set
|
||||
CONFIG_BLK_DEV_IDECD=y
|
||||
CONFIG_BLK_DEV_IDECD=m
|
||||
# CONFIG_BLK_DEV_IDETAPE is not set
|
||||
CONFIG_BLK_DEV_IDEFLOPPY=y
|
||||
CONFIG_BLK_DEV_IDEFLOPPY=m
|
||||
# CONFIG_BLK_DEV_IDESCSI is not set
|
||||
# CONFIG_IDE_TASK_IOCTL is not set
|
||||
|
||||
#
|
||||
# IDE chipset support/bugfixes
|
||||
#
|
||||
CONFIG_IDE_GENERIC=y
|
||||
CONFIG_IDE_GENERIC=m
|
||||
CONFIG_BLK_DEV_CMD640=y
|
||||
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
|
||||
CONFIG_BLK_DEV_IDEPNP=y
|
||||
CONFIG_BLK_DEV_IDEPCI=y
|
||||
CONFIG_IDEPCI_SHARE_IRQ=y
|
||||
# CONFIG_BLK_DEV_OFFBOARD is not set
|
||||
CONFIG_BLK_DEV_GENERIC=y
|
||||
CONFIG_BLK_DEV_GENERIC=m
|
||||
CONFIG_BLK_DEV_OPTI621=m
|
||||
CONFIG_BLK_DEV_RZ1000=m
|
||||
CONFIG_BLK_DEV_IDEDMA_PCI=y
|
||||
@@ -973,12 +972,11 @@ CONFIG_SCSI_NCR53C8XX_SYNC=20
|
||||
# CONFIG_SCSI_NCR53C8XX_PROFILE is not set
|
||||
CONFIG_SCSI_PAS16=m
|
||||
CONFIG_SCSI_PSI240I=m
|
||||
CONFIG_SCSI_QLOGIC_FAS=m
|
||||
CONFIG_SCSI_QLOGIC_FC=m
|
||||
# CONFIG_SCSI_QLOGIC_FC_FIRMWARE is not set
|
||||
# CONFIG_SCSI_QLOGIC_FAS is not set
|
||||
# CONFIG_SCSI_QLOGIC_FC is not set
|
||||
CONFIG_SCSI_QLOGIC_1280=m
|
||||
# CONFIG_SCSI_QLA_FC is not set
|
||||
CONFIG_SCSI_LPFC=m
|
||||
# CONFIG_SCSI_LPFC is not set
|
||||
CONFIG_SCSI_SIM710=m
|
||||
CONFIG_53C700_IO_MAPPED=y
|
||||
CONFIG_SCSI_SYM53C416=m
|
||||
@@ -1007,7 +1005,7 @@ CONFIG_MD_LINEAR=m
|
||||
CONFIG_MD_RAID0=m
|
||||
CONFIG_MD_RAID1=m
|
||||
# CONFIG_MD_RAID10 is not set
|
||||
# CONFIG_MD_RAID5 is not set
|
||||
CONFIG_MD_RAID5=m
|
||||
# CONFIG_MD_RAID6 is not set
|
||||
CONFIG_MD_MULTIPATH=m
|
||||
# CONFIG_MD_FAULTY is not set
|
||||
@@ -1808,16 +1806,16 @@ CONFIG_EXT2_FS_XATTR=y
|
||||
CONFIG_EXT2_FS_POSIX_ACL=y
|
||||
CONFIG_EXT2_FS_SECURITY=y
|
||||
# CONFIG_EXT2_FS_XIP is not set
|
||||
CONFIG_EXT3_FS=y
|
||||
CONFIG_EXT3_FS=m
|
||||
CONFIG_EXT3_FS_XATTR=y
|
||||
CONFIG_EXT3_FS_POSIX_ACL=y
|
||||
CONFIG_EXT3_FS_SECURITY=y
|
||||
CONFIG_JBD=y
|
||||
CONFIG_JBD=m
|
||||
# CONFIG_JBD_DEBUG is not set
|
||||
CONFIG_FS_MBCACHE=y
|
||||
CONFIG_REISER4_FS=y
|
||||
CONFIG_REISER4_FS=m
|
||||
# CONFIG_REISER4_DEBUG is not set
|
||||
CONFIG_REISERFS_FS=y
|
||||
CONFIG_REISERFS_FS=m
|
||||
# CONFIG_REISERFS_CHECK is not set
|
||||
CONFIG_REISERFS_PROC_INFO=y
|
||||
CONFIG_REISERFS_FS_XATTR=y
|
||||
@@ -1836,7 +1834,7 @@ CONFIG_XFS_SECURITY=y
|
||||
CONFIG_XFS_POSIX_ACL=y
|
||||
# CONFIG_XFS_RT is not set
|
||||
# CONFIG_OCFS2_FS is not set
|
||||
CONFIG_MINIX_FS=y
|
||||
# CONFIG_MINIX_FS is not set
|
||||
# CONFIG_ROMFS_FS is not set
|
||||
CONFIG_INOTIFY=y
|
||||
# CONFIG_QUOTA is not set
|
||||
@@ -1849,7 +1847,7 @@ CONFIG_DNOTIFY=y
|
||||
#
|
||||
# CD-ROM/DVD Filesystems
|
||||
#
|
||||
CONFIG_ISO9660_FS=y
|
||||
CONFIG_ISO9660_FS=m
|
||||
CONFIG_JOLIET=y
|
||||
# CONFIG_ZISOFS is not set
|
||||
CONFIG_UDF_FS=m
|
||||
@@ -1947,7 +1945,7 @@ CONFIG_MSDOS_PARTITION=y
|
||||
# Native Language Support
|
||||
#
|
||||
CONFIG_NLS=y
|
||||
CONFIG_NLS_DEFAULT="cp437"
|
||||
CONFIG_NLS_DEFAULT="cp850"
|
||||
# CONFIG_NLS_CODEPAGE_437 is not set
|
||||
# CONFIG_NLS_CODEPAGE_737 is not set
|
||||
# CONFIG_NLS_CODEPAGE_775 is not set
|
||||
|
||||
32
config/mkinitcpio/load-modules.sh
Normal file
32
config/mkinitcpio/load-modules.sh
Normal file
@@ -0,0 +1,32 @@
|
||||
#! /bin/sh
|
||||
# Implement blacklisting for udev-loaded modules
|
||||
# Includes module checking
|
||||
# - Aaron Griffin & Tobias Powalowski for Archlinux
|
||||
[ $# -ne 1 ] && exit 1
|
||||
|
||||
if [ -f /proc/cmdline ]; then
|
||||
for cmd in $(cat /proc/cmdline); do
|
||||
case $cmd in
|
||||
*=*) eval $cmd ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
# get the real names from modaliases
|
||||
i="$(/bin/modprobe -i --show-depends $1 | minised "s#^insmod /lib.*/\(.*\)\.ko.*#\1#g" | minised 's|-|_|g')"
|
||||
# add disablemodules= from commandline to blacklist
|
||||
k="$(echo ${disablemodules} | minised 's|-|_|g' | minised 's|,| |g')"
|
||||
|
||||
if [ "${k}" != "" ] ; then
|
||||
for o in ${k}; do
|
||||
echo "${o}.ko" >> /disablemodules
|
||||
done
|
||||
for n in ${i}; do
|
||||
if /bin/ugrep "^$n.ko" /disablemodules 2>&1 >/dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
fi
|
||||
/bin/modprobe $1
|
||||
|
||||
# vim: set et ts=4:
|
||||
115
config/mkinitcpio/start_udev
Normal file
115
config/mkinitcpio/start_udev
Normal file
@@ -0,0 +1,115 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# start_udev
|
||||
# script to initialize /dev by using udev.
|
||||
#
|
||||
# Modified for Archlinux by Tobias Powalowski <tpowa@archlinux.org>
|
||||
#
|
||||
# Inspired by:
|
||||
#
|
||||
# Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
|
||||
#
|
||||
# Released under the GPL v2 only.
|
||||
#
|
||||
# This needs to be run at the earliest possible point in the boot
|
||||
# process.
|
||||
#
|
||||
# Based on the udev init.d script
|
||||
#
|
||||
# Thanks go out to the Gentoo developers for proving
|
||||
# that this is possible to do.
|
||||
#
|
||||
# Yes, it's very verbose, feel free to turn off all of the echo calls,
|
||||
# they were there to make me feel better that everything was working
|
||||
# properly during development...
|
||||
|
||||
prog=udev
|
||||
sysfs_dir=/sys
|
||||
bin=/sbin/udev
|
||||
udevd=/sbin/udevd
|
||||
udev_root="/dev"
|
||||
|
||||
trigger_device_events ()
|
||||
{
|
||||
/sbin/udevtrigger
|
||||
}
|
||||
|
||||
wait_for_queue ()
|
||||
{
|
||||
# disabled because it hangs network boot
|
||||
#loop=20
|
||||
#while ! [ "$loop" -gt 0 -a -d /dev/.udev/queue ]; do
|
||||
# sleep 0.1;
|
||||
# loop=$(($loop - 1))
|
||||
#done
|
||||
/sbin/udevsettle
|
||||
}
|
||||
|
||||
make_extra_nodes ()
|
||||
{
|
||||
# there are a few things that sysfs does not export for us.
|
||||
# these things go here (and remember to remove them in
|
||||
# remove_extra_nodes()
|
||||
#
|
||||
# Thanks to Gentoo for the initial list of these.
|
||||
ln -sf /proc/self/fd $udev_root/fd
|
||||
ln -sf /proc/self/fd/0 $udev_root/stdin
|
||||
ln -sf /proc/self/fd/1 $udev_root/stdout
|
||||
ln -sf /proc/self/fd/2 $udev_root/stderr
|
||||
ln -sf /proc/kcore $udev_root/core
|
||||
}
|
||||
|
||||
udev_init ()
|
||||
{
|
||||
# don't use udev if sysfs is not mounted.
|
||||
if [ ! -d $sysfs_dir/block ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#echo "mounting... ramfs at $udev_root"
|
||||
mount -t ramfs none $udev_root
|
||||
|
||||
# propogate /udev from /sys
|
||||
#echo "Creating initial udev device nodes:"
|
||||
|
||||
#echo "making extra nodes"
|
||||
make_extra_nodes
|
||||
|
||||
# check if udevd is already running
|
||||
#echo "start udev daemon"
|
||||
/sbin/udevd --daemon
|
||||
|
||||
case "$(uname -r)" in
|
||||
2.6.[0-9]|2.6.[0-9][!0-9]*) ;;
|
||||
*) if [ -f "/sys/class/tty/console/uevent" ]; then
|
||||
#echo "Kernel >= 2.6.15 and supports uevents"
|
||||
# trigger the sorted events
|
||||
echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
|
||||
# catch events that are real fast
|
||||
mkdir -p /dev/.udev/queue
|
||||
else
|
||||
# for older kernels without uevents will be removed when udevstart dies in udev
|
||||
echo "Kernel does not support uevents, you need a kernel >= 2.6.15!"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
udev_uevents ()
|
||||
{
|
||||
# configure all devices
|
||||
trigger_device_events
|
||||
# until we know how to do better, just wait for _all_ events to finish
|
||||
wait_for_queue
|
||||
}
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
udev_init
|
||||
udev_uevents
|
||||
fi
|
||||
|
||||
[ "$1" = "init" ] && udev_init
|
||||
[ "$1" = "uevents" ] && udev_uevents
|
||||
|
||||
exit 0
|
||||
71
config/mkinitcpio/udev.rules
Normal file
71
config/mkinitcpio/udev.rules
Normal file
@@ -0,0 +1,71 @@
|
||||
# Udev rules for Archlinux by Tobias Powalowski <tpowa@archlinux.org>
|
||||
#
|
||||
# This ruleset should provide a DevFS-compatible device tree.
|
||||
#
|
||||
# There are a number of modifiers that are allowed to be used in some
|
||||
# of the different fields. They provide the following subsitutions:
|
||||
#
|
||||
# %n the "kernel number" of the device.
|
||||
# For example, 'sda3' has a "kernel number" of '3'
|
||||
# %k the kernel name for the device.
|
||||
# %M the kernel major number for the device
|
||||
# %m the kernel minor number for the device
|
||||
# %b the bus id for the device
|
||||
# %c the string returned by the PROGRAM
|
||||
# %s{filename} the content of a sysfs attribute.
|
||||
# %% the '%' char itself.
|
||||
#
|
||||
# There are a number of modifiers that are allowed to be used in some of the
|
||||
# fields. See the udev man page for a full description of them.
|
||||
# global stuff
|
||||
#
|
||||
|
||||
#####################################
|
||||
# Early rules - begin
|
||||
#####################################
|
||||
# wait for sysfs
|
||||
ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
|
||||
ACTION=="add", SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt"
|
||||
|
||||
#####################################
|
||||
# Early rules -end
|
||||
#####################################
|
||||
|
||||
#####################################
|
||||
###### Hotplug rules - begin
|
||||
#####################################
|
||||
# check if the device has already been claimed by a driver
|
||||
ENV{PHYSDEVDRIVER}=="?*", GOTO="hotplug_driver_loaded"
|
||||
|
||||
# Modaliases to load
|
||||
ACTION=="add", ENV{MODALIAS}=="?*", RUN+="/lib/udev/load-modules.sh $env{MODALIAS}"
|
||||
# SCSI addon modules
|
||||
ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[07]", RUN+="/lib/udev/load-modules.sh sd_mod"
|
||||
ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="14", RUN+="/lib/udev/load-modules.sh sd_mod"
|
||||
ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[45]", RUN+="/lib/udev/load-modules.sh sr_mod"
|
||||
ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="1", SYSFS{vendor}=="Onstream", SYSFS{model}!="ADR*", RUN+="/lib/udev/load-modules.sh osst"
|
||||
ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="1", SYSFS{vendor}=="Onstream", SYSFS{model}=="ADR*", RUN+="/lib/udev/load-modules.sh st"
|
||||
ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="1", SYSFS{vendor}!="Onstream", RUN+="/lib/udev/load-modules.sh st"
|
||||
ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[23689]", RUN+="/lib/udev/load-modules.sh sg"
|
||||
|
||||
LABEL="hotplug_driver_loaded"
|
||||
|
||||
# FIRMWARE
|
||||
ACTION=="add", SUBSYSTEM=="firmware", ENV{FIRMWARE}=="?*", RUN+="/lib/udev/firmware.sh"
|
||||
#####################################
|
||||
##### Hotplug rules - end
|
||||
#####################################
|
||||
|
||||
#####################################
|
||||
###### CD/DVD symlinks - begin
|
||||
#####################################
|
||||
ACTION=="add", BUS=="ide", KERNEL=="hd[a-z]", IMPORT="/lib/udev/cdrom_id --export $tempnode"
|
||||
ACTION=="add", BUS=="scsi", KERNEL=="sr[0-9]*", IMPORT="/lib/udev/cdrom_id --export $tempnode"
|
||||
ACTION=="add", BUS=="scsi", KERNEL=="scd[a-z]", IMPORT="/lib/udev/cdrom_id --export $tempnode"
|
||||
ENV{ID_CDROM}=="?*", SYMLINK+="cd/cdrom-%b"
|
||||
ENV{ID_CDROM_CD_RW}=="?*", SYMLINK+="cd/cdrw-%b"
|
||||
ENV{ID_CDROM_DVD}=="?*", SYMLINK+="cd/dvd-%b"
|
||||
ENV{ID_CDROM_DVD_R}=="?*", SYMLINK+="cd/dvd-%b"
|
||||
#####################################
|
||||
###### CD/DVD symlinks - end
|
||||
#####################################
|
||||
7
config/mkinitcpio/udev_hook
Normal file
7
config/mkinitcpio/udev_hook
Normal file
@@ -0,0 +1,7 @@
|
||||
# vim: set ft=sh:
|
||||
run_hook ()
|
||||
{
|
||||
msg -n ":: Loading udev..."
|
||||
/etc/start_udev
|
||||
msg "done."
|
||||
}
|
||||
26
config/mkinitcpio/udev_install
Normal file
26
config/mkinitcpio/udev_install
Normal file
@@ -0,0 +1,26 @@
|
||||
# vim:set ft=sh:
|
||||
|
||||
install ()
|
||||
{
|
||||
MODULES=""
|
||||
BINARIES=""
|
||||
FILES=" /etc/udev/udev.conf"
|
||||
SCRIPT="udev"
|
||||
add_file /lib/initcpio/udev/udevd /sbin/udevd
|
||||
add_file /lib/initcpio/udev/udevtrigger /sbin/udevtrigger
|
||||
add_file /lib/initcpio/udev/udevsettle /sbin/udevsettle
|
||||
add_file /lib/initcpio/udev/udev.rules /etc/udev/rules.d/udev.rules
|
||||
add_file /lib/initcpio/udev/start_udev /etc/start_udev
|
||||
add_file /lib/initcpio/udev/firmware.sh /lib/udev/firmware.sh
|
||||
add_file /lib/initcpio/udev/cdrom_id /lib/udev/cdrom_id
|
||||
add_file /lib/initcpio/udev/load-modules.sh /lib/udev/load-modules.sh
|
||||
}
|
||||
|
||||
help ()
|
||||
{
|
||||
cat <<HELPEOF
|
||||
This hook will use udev to create your root device node
|
||||
and detect the needed modules for your root device.
|
||||
It is recommended to use this hook instead of modload.
|
||||
HELPEOF
|
||||
}
|
||||
@@ -42,7 +42,7 @@ usr/bin/fold
|
||||
usr/bin/groups
|
||||
usr/bin/hostid
|
||||
usr/bin/id
|
||||
#usr/bin/install
|
||||
usr/bin/install
|
||||
usr/bin/join
|
||||
#usr/bin/link
|
||||
#usr/bin/logname
|
||||
@@ -58,7 +58,7 @@ usr/bin/paste
|
||||
#usr/bin/printenv
|
||||
usr/bin/printf
|
||||
#usr/bin/ptx
|
||||
#usr/bin/readlink
|
||||
usr/bin/readlink
|
||||
usr/bin/seq
|
||||
#usr/bin/sha1sum
|
||||
usr/bin/shred
|
||||
@@ -76,7 +76,7 @@ usr/bin/tr
|
||||
#usr/bin/tty
|
||||
usr/bin/unexpand
|
||||
usr/bin/uniq
|
||||
#usr/bin/unlink
|
||||
usr/bin/unlink
|
||||
#usr/bin/users
|
||||
#usr/bin/vdir
|
||||
usr/bin/wc
|
||||
|
||||
1572
config/rootfiles/common/klibc
Normal file
1572
config/rootfiles/common/klibc
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1301,3 +1301,4 @@ lib/modules/KVER-ipfire-smp
|
||||
#lib/modules/KVER-ipfire-smp/source
|
||||
#lib/modules/KVER-ipfire-smp/kernel/drivers/net/imq.ko
|
||||
#lib/modules/KVER-ipfire-smp/kernel/net/ipv4/netfilter/ipt_IMQ.ko
|
||||
sbin/gen_init_cpio
|
||||
|
||||
64
config/rootfiles/common/mkinitcpio
Normal file
64
config/rootfiles/common/mkinitcpio
Normal file
@@ -0,0 +1,64 @@
|
||||
etc/mkinitcpio.conf
|
||||
etc/mkinitcpio.d
|
||||
#etc/mkinitcpio.d/example.preset
|
||||
lib/initcpio
|
||||
#lib/initcpio/functions
|
||||
#lib/initcpio/hooks
|
||||
#lib/initcpio/hooks/filesystems
|
||||
#lib/initcpio/hooks/fw
|
||||
#lib/initcpio/hooks/modload
|
||||
#lib/initcpio/hooks/raid
|
||||
#lib/initcpio/hooks/resume
|
||||
#lib/initcpio/hooks/usb
|
||||
#lib/initcpio/init
|
||||
#lib/initcpio/install
|
||||
#lib/initcpio/install/autodetect
|
||||
#lib/initcpio/install/base
|
||||
#lib/initcpio/install/dsdt
|
||||
#lib/initcpio/install/filesystems
|
||||
#lib/initcpio/install/firmware
|
||||
#lib/initcpio/install/fw
|
||||
#lib/initcpio/install/ide
|
||||
#lib/initcpio/install/modload
|
||||
#lib/initcpio/install/net
|
||||
#lib/initcpio/install/pata
|
||||
#lib/initcpio/install/pcmcia
|
||||
#lib/initcpio/install/raid
|
||||
#lib/initcpio/install/resume
|
||||
#lib/initcpio/install/sata
|
||||
#lib/initcpio/install/scsi
|
||||
#lib/initcpio/install/usb
|
||||
#lib/initcpio/install/usbinput
|
||||
sbin/mkinitcpio
|
||||
etc/mkinitcpio.conf
|
||||
etc/mkinitcpio.d
|
||||
#etc/mkinitcpio.d/example.preset
|
||||
lib/initcpio
|
||||
#lib/initcpio/functions
|
||||
#lib/initcpio/hooks
|
||||
#lib/initcpio/hooks/filesystems
|
||||
#lib/initcpio/hooks/fw
|
||||
#lib/initcpio/hooks/modload
|
||||
#lib/initcpio/hooks/raid
|
||||
#lib/initcpio/hooks/resume
|
||||
#lib/initcpio/hooks/usb
|
||||
#lib/initcpio/init
|
||||
#lib/initcpio/install
|
||||
#lib/initcpio/install/autodetect
|
||||
#lib/initcpio/install/base
|
||||
#lib/initcpio/install/dsdt
|
||||
#lib/initcpio/install/filesystems
|
||||
#lib/initcpio/install/firmware
|
||||
#lib/initcpio/install/fw
|
||||
#lib/initcpio/install/ide
|
||||
#lib/initcpio/install/modload
|
||||
#lib/initcpio/install/net
|
||||
#lib/initcpio/install/pata
|
||||
#lib/initcpio/install/pcmcia
|
||||
#lib/initcpio/install/raid
|
||||
#lib/initcpio/install/resume
|
||||
#lib/initcpio/install/sata
|
||||
#lib/initcpio/install/scsi
|
||||
#lib/initcpio/install/usb
|
||||
#lib/initcpio/install/usbinput
|
||||
sbin/mkinitcpio
|
||||
@@ -57,3 +57,14 @@ usr/sbin/udevmonitor
|
||||
#usr/share/man/man8/udevtest.8
|
||||
#usr/share/man/man8/udevtrigger.8
|
||||
#usr/share/man/man8/vol_id.8
|
||||
lib/initcpio/hooks/udev
|
||||
lib/initcpio/install/udev
|
||||
#lib/initcpio/udev
|
||||
lib/initcpio/udev/cdrom_id
|
||||
lib/initcpio/udev/firmware.sh
|
||||
lib/initcpio/udev/load-modules.sh
|
||||
lib/initcpio/udev/start_udev
|
||||
lib/initcpio/udev/udev.rules
|
||||
lib/initcpio/udev/udevd
|
||||
lib/initcpio/udev/udevsettle
|
||||
lib/initcpio/udev/udevtrigger
|
||||
|
||||
Reference in New Issue
Block a user