# This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /etc/conf.d/net.example and save your configuration # in /etc/conf.d/net (this file :]!). dns_domain_lo="covici.com" dns_servers_lo=" 127.0.0.1 4.2.2.1 64.83.1.10" postup() { if [ ${IFACE} = lo ]; then einfo setting host name again domainname covici.com hostname ccs.covici.com fi if [ ${IFACE} = eth1 ]; then killall ddclient ddclient -file /etc/ddclient.conf -ip 67.62.15.196 pid_length=`pidof asterisk|awk '{print length($0)}'` if [ "$pid_length" == "0" -a "$pid_length" != "" ]; then echo ADDING WCFXO modprobe wcfxo modprobe wctdm modprobe dahdi-transcode dahdi_cfg -vv echo STARTING ASTERISK /usr/sbin/amportal start else asterisk -rx reload fi /etc/init.d/rc.firewall stop echo starting firewall ifconfig eth2 up /etc/init.d/rc.firewall start /etc/init.d/sendmail stop /etc/init.d/apache2 stop /usr/sbin/apache2 -k stop -f /etc/apache2-asterisk/apache2.conf /etc/init.d/ntpd stop /etc/init.d/ntpd start /etc/init.d/sendmail start /etc/init.d/apache2 start /usr/sbin/apache2 -k start -f /etc/apache2-asterisk/apache2.conf fi } config_eth0="192.168.0.1 netmask 255.255.255.0 brd 192.168.0.255" config_eth1="67.62.15.196 netmask 255.255.255.0 " routes_eth1="default via 67.62.15.1" config_ppp0="ppp" link_ppp0="eth2" plugins_ppp0="rp-pppoe" username_ppp0='vzeqmmst' mtu_ppp0="1492" pppd_ppp0=" updetach noauth ipcp-accept-remote ipcp-accept-local holdoff 3 lcp-echo-interval 15 lcp-echo-failure 3" config_eth2=dhcp modules_eth2="dhcpcd"