1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../zaptel/pkg_module-init-tools_pre.conf
5 # Copyright (C) 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- SDE-COPYRIGHT-NOTE-END ---
16 # zaptel postmake hook for module-init-tools
18 # modules where we have to run ztcfg after loading
19 local zmodules="tor2 wcusb wcfxo wctdm24xxp ztdynamic ztd-eth wct1xxp \
20 wct4xxp wcte11xp pciradio ztd-loc ztdummy torisa"
22 cat >> $root/etc/modprobe.conf <<-EOT
24 # Zapata Telephony Interface Drivers for Digium cards
26 options torisa base=0xd0000
27 alias char-major-196 torisa
32 for x in $zmodules ; do
33 echo "install $x modprobe --ignore-install $x; /sbin/ztcfg"
34 done >> $root/etc/modprobe.conf
38 hook_add postmake 6 'zaptel_mit_pm'