fixed some litle issues with the modprobe.d stuff. Also we're automatically creating the configuration now if it's not there and if we're called from the hotplug stuff

This commit is contained in:
Chrisian Richter 2006-05-09 07:11:37 +00:00
parent 0e9fc6c22e
commit bcf464c910
3 changed files with 31 additions and 6 deletions

View File

@ -52,7 +52,7 @@ install: all
cp $(MISDNDIR)/include/linux/*.h $(INSTALL_PREFIX)/usr/include/linux/
mkdir -p $(INSTALL_PREFIX)/etc/init.d/
install -m755 misdn-init $(INSTALL_PREFIX)/etc/init.d/
mkdir -p $(INSTALL_PREFIX)/etc/modprobe.d/mISDN
mkdir -p $(INSTALL_PREFIX)/etc/modprobe.d
cp mISDN.modprobe.d $(INSTALL_PREFIX)/etc/modprobe.d/mISDN
$(DEPMOD)

View File

@ -1,5 +1,25 @@
install hfcmulti /etc/init.d/misdn-init start hfcmulti
remove hfcmulti /etc/init.d/misdn-init stop
install hfcpci /etc/init.d/misdn-init start hfcpci
remove hfcpci /etc/init.d/misdn-init stop
install hfcsusb /etc/init.d/misdn-init start hfcsusb
remove hfcsusb /etc/init.d/misdn-init stop
remove hfcsusb if ps ax | grep -v grep | grep asterisk > /dev/null ; then asterisk -rx "stop now" ; fi && /etc/init.d/misdn-init stop
install hfcsmini /etc/init.d/misdn-init start hfcsmini
remove hfcsmini /etc/init.d/misdn-init stop
install xhfc /etc/init.d/misdn-init start xhfc
remove xhfc /etc/init.d/misdn-init stop
install avmfritz /etc/init.d/misdn-init start avmfritz
remove avmfritz /etc/init.d/misdn-init stop
install w6692pci /etc/init.d/misdn-init start w6692pci
remove w6692pci /etc/init.d/misdn-init stop
install sedlfax /etc/init.d/misdn-init start sedlfax
remove sedlfax /etc/init.d/misdn-init stop

View File

@ -521,9 +521,14 @@ debug=0"
function check_cfg_file {
if [ ! -f ${misdn_init_conf} ]; then
echo "[!!] failed to load: ${misdn_init_conf}"
echo "run \"/etc/init.d/misdn-init config\" to scan your devices and generate a basic config file."
exit 1
if [ ! -z "$1" ] ; then
/etc/init.d/misdn-init config
else
echo "[!!] failed to load: ${misdn_init_conf}"
echo "run \"/etc/init.d/misdn-init config\" to scan your devices and generate a basic config file."
exit 1
fi
fi
}
@ -532,7 +537,7 @@ function check_cfg_file {
case "$1" in
start|--start)
#remove_preloaded_modules
check_cfg_file
check_cfg_file $2
modprobe capi
modprobe mISDN_core debug=0