1 #!/bin/sh /etc/rc.common
7 config_get fw_url config fw_url
8 config_get fw_file config fw_file
9 wget
$fw_url -O /tmp
/$fw_file ||
{
10 echo "failed to load $fw_url"
20 config_get fw_file config fw_file
21 [ -z "fw_file" ] && exit 1
22 F
=/lib
/firmware
/$fw_file
23 [ ! -f "$F" -a ! -L "$F" ] && {
24 echo "missing firmware file"
27 [ -L "$F" -a -f /tmp
/$fw_file ] && F
=/tmp
/$fw_file
34 killall tapi-sip
2>/dev
/null
41 config_get fw_url config fw_url
42 config_get fw_file config fw_file
43 config_get netdev config netdev
44 config_get disable config disable
45 [ "$disable" != "1" ] && {
46 [ ! -z "$fw_url" -a ! -f "/tmp/$fw_file" ] && download_fw
48 /usr
/bin
/tapi-sip
$netdev &