From: <kr...@us...> - 2007-10-19 03:47:42
|
Revision: 1293 http://astlinux.svn.sourceforge.net/astlinux/?rev=1293&view=rev Author: krisk84 Date: 2007-10-18 20:47:46 -0700 (Thu, 18 Oct 2007) Log Message: ----------- support startup and configuration of wanpipe with zaptel Modified Paths: -------------- trunk/package/zaptel/zaptel.init trunk/target/generic/target_skeleton/etc/rc Modified: trunk/package/zaptel/zaptel.init =================================================================== --- trunk/package/zaptel/zaptel.init 2007-10-18 20:35:19 UTC (rev 1292) +++ trunk/package/zaptel/zaptel.init 2007-10-19 03:47:46 UTC (rev 1293) @@ -3,6 +3,18 @@ . /etc/rc.conf init () { + +if [ -d /mnt/kd/wanpipe ] +then +ln -s /mnt/kd/wanpipe /tmp/etc/wanpipe +else +if [ -d /stat/etc/wanpipe ] +then +mkdir /tmp/etc/wanpipe +cp -a /stat/etc/wanpipe/* /tmp/etc/wanpipe/ +fi +fi + if [ ! -d /dev/zap ] then mkdir -p /dev/zap @@ -28,6 +40,12 @@ } start () { + +if [ -r /etc/wanpipe/wanpipe*.conf ] +then +/usr/sbin/wanrouter start +fi + if [ -r /etc/zaptel.conf ] then @@ -38,6 +56,7 @@ modprobe -q $i done fi + ztcfg if [ "$EXTIF" = "hdlc0" ] @@ -59,6 +78,7 @@ fi else +echo "No Zap hardware - loading ztdummy" modprobe ztdummy fi } @@ -73,6 +93,12 @@ else modprobe -r ztdummy fi + +if [ -r /etc/wanpipe/wanpipe*.conf ] +then +/usr/sbin/wanrouter stop +fi + } case $1 in Modified: trunk/target/generic/target_skeleton/etc/rc =================================================================== --- trunk/target/generic/target_skeleton/etc/rc 2007-10-18 20:35:19 UTC (rev 1292) +++ trunk/target/generic/target_skeleton/etc/rc 2007-10-19 03:47:46 UTC (rev 1293) @@ -343,17 +343,6 @@ touch /var/log/wtmp fi -if [ -d /mnt/kd/wanpipe ] -then -ln -s /mnt/kd/wanpipe /tmp/etc/wanpipe -else -if [ -d /stat/etc/wanpipe ] -then -mkdir /tmp/etc/wanpipe -cp -a /stat/etc/wanpipe/* /tmp/etc/wanpipe/ -fi -fi - #Resize filesystems if we need to... if [ $VAR_SIZE ] then This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |