2005-11-07 03:12:51 +02:00
|
|
|
#!/bin/sh
|
2006-01-05 03:20:44 +02:00
|
|
|
[ "$1" = "firmware" -a "$ACTION" = "add" ] && {
|
|
|
|
[ -f "/lib/firmware/$FIRMWARE" ] && {
|
|
|
|
echo 1 > "/sys$DEVPATH/loading"
|
|
|
|
cp "/lib/firmware/$FIRMWARE" "/sys$DEVPATH/data"
|
|
|
|
echo 0 > "/sys$DEVPATH/loading"
|
|
|
|
}
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
2005-11-19 05:17:20 +02:00
|
|
|
[ -e /tmp/.failsafe ] && {
|
|
|
|
export FAILSAFE=true
|
|
|
|
} || {
|
|
|
|
[ -e /etc/config/network ] && . /etc/config/network
|
|
|
|
}
|
2005-11-07 04:18:59 +02:00
|
|
|
. /etc/functions.sh
|
|
|
|
. /etc/network.overrides
|
|
|
|
|
2005-11-07 03:12:51 +02:00
|
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
|
|
|
LOGNAME=root
|
|
|
|
USER=root
|
|
|
|
export PATH LOGNAME USER
|
|
|
|
|
|
|
|
[ \! -z "$1" -a -d /etc/hotplug.d/$1 ] && {
|
|
|
|
for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
|
|
|
|
[ -f $script ] && . $script
|
|
|
|
); done
|
|
|
|
}
|