|
From: <kr...@us...> - 2007-04-18 18:27:23
|
Revision: 851
http://svn.sourceforge.net/astlinux/?rev=851&view=rev
Author: krisk84
Date: 2007-04-18 11:27:17 -0700 (Wed, 18 Apr 2007)
Log Message:
-----------
merge changes from trunk
Modified Paths:
--------------
branches/s2s/target/generic/target_skeleton/etc/astlinux-release
branches/s2s/target/generic/target_skeleton/etc/group
branches/s2s/target/generic/target_skeleton/etc/passwd
branches/s2s/target/generic/target_skeleton/etc/shadow
Added Paths:
-----------
branches/s2s/target/generic/target_skeleton/stat/etc/hosts
branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/
branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/astfw.conf
branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/dns.conf
branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/main.conf
branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/net.conf
branches/s2s/target/generic/target_skeleton/stat/etc/rc.elocal
branches/s2s/target/generic/target_skeleton/stat/etc/rc.local
branches/s2s/target/generic/target_skeleton/stat/etc/snmp/
branches/s2s/target/generic/target_skeleton/stat/etc/snmp/snmpd.conf
branches/s2s/target/generic/target_skeleton/stat/etc/ssh/sshd_config
branches/s2s/target/generic/target_skeleton/stat/etc/ssh_keys/
branches/s2s/target/generic/target_skeleton/stat/etc/ssh_keys/kk.pub
branches/s2s/target/generic/target_skeleton/stat/etc/ssh_keys/s2s-prov.pub
branches/s2s/target/generic/target_skeleton/usr/bin/exe
branches/s2s/target/generic/target_skeleton/usr/bin/mymac
branches/s2s/target/generic/target_skeleton/usr/bin/prov
branches/s2s/target/generic/target_skeleton/usr/sbin/preboot
branches/s2s/target/generic/target_skeleton/usr/sbin/sup
Removed Paths:
-------------
branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf
Modified: branches/s2s/target/generic/target_skeleton/etc/astlinux-release
===================================================================
--- branches/s2s/target/generic/target_skeleton/etc/astlinux-release 2007-04-18 18:26:59 UTC (rev 850)
+++ branches/s2s/target/generic/target_skeleton/etc/astlinux-release 2007-04-18 18:27:17 UTC (rev 851)
@@ -1 +1 @@
-trunk
+astlinux-0.5.0g-s2s
Modified: branches/s2s/target/generic/target_skeleton/etc/group
===================================================================
--- branches/s2s/target/generic/target_skeleton/etc/group 2007-04-18 18:26:59 UTC (rev 850)
+++ branches/s2s/target/generic/target_skeleton/etc/group 2007-04-18 18:27:17 UTC (rev 851)
@@ -2,4 +2,6 @@
users:x:100:
ftp:x:21:
sshd:x:22:
-nobody:x:65535:
+nobody:x:1000:
+pcom:x:500:
+pcoms:x:501:
Modified: branches/s2s/target/generic/target_skeleton/etc/passwd
===================================================================
--- branches/s2s/target/generic/target_skeleton/etc/passwd 2007-04-18 18:26:59 UTC (rev 850)
+++ branches/s2s/target/generic/target_skeleton/etc/passwd 2007-04-18 18:27:17 UTC (rev 851)
@@ -2,3 +2,6 @@
sshd:x:22:22:sshd:/dev/null:/bin/false
ftp:x:21:21:ftp user:/home/ftp:/bin/false
nobody:x:1000:1000:no one:/dev/null:/bin/false
+_ntp:x:123:123:OpenNTPD:/usr/share/empty:/bin/false
+pcom:x:500:500:Linux User,,,:/home/pcom:/bin/false
+pcoms:x:501:501:Linux User,,,:/home/pcoms:/bin/false
Modified: branches/s2s/target/generic/target_skeleton/etc/shadow
===================================================================
--- branches/s2s/target/generic/target_skeleton/etc/shadow 2007-04-18 18:26:59 UTC (rev 850)
+++ branches/s2s/target/generic/target_skeleton/etc/shadow 2007-04-18 18:27:17 UTC (rev 851)
@@ -2,3 +2,6 @@
sshd:!:0:0:99999:7:::
ftp:!:0:0:99999:7:::
nobody:!:0:99999:7:::
+_ntp:!:3656:0:99999:7:::
+pcom:$1$$uMYVQdnYlhNyrzPi/AaRi/:3652:0:99999:7:::
+pcoms:$1$$uMYVQdnYlhNyrzPi/AaRi/:3652:0:99999:7:::
Added: branches/s2s/target/generic/target_skeleton/stat/etc/hosts
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/hosts (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/hosts 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,2 @@
+10.41.22.99 pbxv.s2s.int pbxv
+10.45.15.1 fm.grandstream.com
Deleted: branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf 2007-04-18 18:26:59 UTC (rev 850)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf 2007-04-18 18:27:17 UTC (rev 851)
@@ -1,613 +0,0 @@
-## AstLinux Main Configuration file
-##
-## Web: http://www.astlinux.org
-## Support: http://lists.kriscompanies.com
-## Donate: Paypal pa...@kr...
-##
-## Don't uncomment any line with more than one #!
-##
-##
-## Begin rc.conf ##
-
-###Basic Stuff
-
-##Hostname
-DOMAIN=astlinux
-HOSTNAME=pbx
-
-##Timezone
-##If you define this variable, AstLinux will link this file from
-##/usr/share/zoneinfo/$TIMEZONE to /tmp/etc/localtime on startup
-##GMT (UTC) is the default
-#TIMEZONE=America/Chicago
-
-##uClibc Timezone
-##See http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
-#TZ_TIMEZONE=CST6CDT
-
-###Interfaces
-
-##VLANS
-##Configure vlans here. These will be created on boot BEFORE INTIF, etc are
-##brought up. You can then use these values for INTIF, EXTIF, etc.
-#VLANS="eth1.110 eth1.120"
-
-##BRIDGES
-##If configured with bridge-utils AstLinux can setup layer 2 bridges for you
-##Very useful for access points, small "switches" etc. You can define up to
-##three total (BRIDGE0, BRIDGE1, BRIDGE2). This example creates device "br0"
-##and adds the interfaces (seperated by spaces) to the bridge. Bridges can
-##include vlans as defined above.
-#BRIDGE0="eth1 ap0"
-#BRIDGE1="ap1 eth0"
-#BRIDGE2="ath0 eth1"
-
-##WIFI
-##Wireless configuration. Currently only Atheros chipsets (via madwifi-ng)
-##are supported if built with madwifi. You can define up to three AP's and
-##three stations. WIFIMODS are the modules to load in order before trying to
-##configure the wireless devices.
-#WIFIMODS="ath_pci"
-
-##Access points
-#AP0="wifi0:ap0:1"
-#AP1="wifi0:ap1:1"
-#AP2="wifi0:ap2:1"
-
-##Client support
-#ATH0="wifi0:sta"
-#ATH1="wifi1:sta"
-#ATH2="wifi2:sta"
-
-##Change EXTIF's MAC address here (for some cable connections)
-#EXTIFMAC="01:02:03:04:05:06"
-
-##Change EXT2IF's MAC address here (for some cable connections)
-#EXT2IFMAC="01:02:03:04:05:06"
-
-##External Interface
-##The external interface has a fairly restrictive firewall when not in PBX
-##only mode. See the Firewall section in this file for more details.
-EXTIF=eth0
-
-##Backup External Interface
-##The backup external interface will be used as a backup default route
-##in case the primary becomes unavailable. The firewall rules, routing, etc
-##apply identically to both interfaces. THIS CURRENTLY ONLY WORKS IF BOTH
-##EXTIF AND EXT2IF HAVE STATIC IP ADDRESSES.
-#EXT2IF=eth1
-
-##Fancy External interface support
-##THIS HAS CHANGED FROM PREVIOUS VERSIONS!!!
-##You will still need to set EXTIF to your external interface (wp*).
-##If EXTIF=hdlc0, I will start zaptel and run sethdlc.
-##If EXTIF=pvc0. I will start zaptel and run sethdlc. You will also need to
-##fill in HDLCLMI and HDLCDLCI
-##See more options below.
-
-##Use wancfg first!
-#EXTIF=wp1chdlc
-
-##Use cisco encapsulation and be done
-#EXTIF=hdlc0
-#EXTENC="cisco"
-
-##Zaptel Data Support
-##If you set EXTIF=hdlc0 above, you will probably need to set the
-##protocol here. See sethdlc for valid types, but you PROBABLY want
-##"cisco". DO NOT USE THIS WITH SANGOMA HARDWARE!!! Use wancfg!!!
-#EXTENC="cisco"
-
-##Frame relay with LMI and DLCI (will use hdlc0)
-#EXTIF=pvc0
-#HDLCLMI=ansi
-#HDLCDLCI=100
-
-##Sometimes it takes a while for the WAN interface to come up...
-##This can happen with frame relay and PPPoE, for example.
-##Set this variable in seconds, and I will sleep on startup before
-##I attempt to bring up the WAN interface.
-#WANDELAY=60
-
-##If EXTIP is set, the remaining STATIC config is read instead of the
-##default, which is DHCP client on $EXTIF. If you are using a T1/E1
-##EXTGW is also the PtP address. You can enter as many DNS servers as
-##you wish. They will be added in order.
-#EXTIP="192.168.25.2"
-#EXTNM="255.255.255.0"
-#EXTGW="192.168.25.1"
-#DNS="192.168.1.1 192.168.1.2 192.168.1.3"
-
-##These variables are required for internet failover. They will do nothing
-##if either EXTIF or EXT2IF are set to dhcp. They will use the same DNS
-##servers as above.
-#EXT2IP="192.168.25.2"
-#EXT2NM="255.255.255.0"
-#EXT2GW="192.168.25.1"
-
-##Internet failover timeout. How long to wait before switching default routes.
-##If failover is otherwise setup - EXTIP, EXT2IP, EXT2IF, EXT2GW the default
-##will be 10 seconds. You can change that here.
-#FAILTIME=10
-
-##Use local dnsmasq
-##This setting controls whether or not we will use the local dnsmasq instance
-##for DNS resolution on THIS machine.
-#LOCALDNS=yes
-
-##If you do not define the INTIF, I will not try to start one.
-##If you do not define the INTIF, I will also not start the following services:
-##dnsmasq iptables astshape (PBX only mode)
-##PBX Only mode is enabled by default from 0.2.8.10
-#INTIF=eth1
-
-##Internal IP address and netmask
-INTIP=192.168.101.1
-INTNM=255.255.255.0
-
-##Additional "Internal" interfaces
-##By default they will be brought up identically to INTIF.
-##They will be able to access the AstLinux machine and go
-##out via EXTIF, but routing between them is not permitted.
-#INT2IF=eth1
-#INT2IP=192.168.102.1
-#INT2NM=255.255.255.0
-
-#INT3IF=eth2
-#INT3IP=192.168.103.1
-#INT3NM=192.168.103.1
-
-##DMZ Support
-##Uncomment the following to utilize a DMZ network. The DMZ network by
-##default is only allowed to access the internet (via EXTIF). It is not
-##able to access services on the AstLinux machine, or any of the machines
-##on INTIF. To allow access to services on the AstLinux machine
-##(Asterisk, etc.) set DMZTYPE=extme
-DMZTYPE=extonly
-#DMZIF="eth2"
-#DMZIP="192.168.102.1"
-#DMZNM="255.255.255.0"
-
-##IP DMZ Support
-##Uncomment the following lines to support more traditional DMZ setups.
-##If you define DMZIP astfw will automatically forward any new/unknown
-##tcp and udp connections coming in on EXTIF to the IP address that you
-##specify. If you say "auto", AstLinux will use the first DHCP lease from
-##the instance of dnsmasq running on INTIF.
-#DMZIP="auto"
-
-##You can also specify a IP/hostname/netblock of IPs that should still have
-##access to the AstLinux system, i.e. not be forwarded to the DMZ host.
-##Define that here. These are examples of what is possible, only define one.
-#DMZSRC="www.astlinux.org"
-##-or
-#DMZSRC="169.207.1.3"
-##-or
-#DMZSRC="10.17.69.0/255.255.255.0"
-
-##If your DMZIP is not on INTIF, define the other interface here. You can use
-##a real name or another variable from this file.
-#DMZIPIF="$INT2IF"
-
-##PPPoE support from Roaring Penguin. If you define PPPOEUSER below, AstLinux
-##will run rp-pppoe on your $PPPOEIF. You will also need to set EXTIF to "ppp0".
-##PPPoE kernel support
-##Experimental, but kernel mode PPPoE cuts down on CPU usage DRASTICALLY and
-##improves throughput. Give it a try first, disable if you have problems (and
-##make sure to let me know about it.
-#PPPOEUSER="us...@is..."
-#PPPOEPASS="mypassword"
-#PPOEIF="w1ad"
-PPPOEKERNEL="YES"
-
-### Firewall support. Two firewall scripts are now available. Set that variable
-### here. Values are astfw or arno. If not set, defaults to astfw.
-### Settings for Arno's firewall should be made by copying the config file from
-### /stat/etc/arno-iptables-firewall.conf to /mnt/kd. REBOOT or restart iptables
-### If using Arno's firewall, the firewall settings in rc.conf are presently ignored.
-FWVERS="astfw"
-
-### astfw Firewall (iptables)
-
-##If you have more than one IP on the EXTIF, here is where you configure 1:1 NAT maps
-##These have to start at 10!!!!!!
-#EXTMAP10="192.168.25.11=192.168.1.100"
-#OPENMAP10="22"
-
-##Default "deny action" - you want either DROP or REJECT (returns with icmp filtered)
-DENYACT="DROP"
-
-##EXTOPEN
-##A list of ports (with protocol) that will be opened on the external
-#interface to the AstLinux machine. Here you can add access to IAX
-##SIP, etc.
-##t= tcp u= udp
-#EXTOPEN="t22 u4569"
-
-##MASQPORTS
-##By default the Linux kernel will attempt to use the same source and destination port
-##for a MASQUERADED connection as long as it is above 1023. This option allows you to
-##force TCP and UDP connections to always be natted within the range of ports defined.
-#MASQPORTS="30000-60000"
-
-##Master NTP server. This is the NTP server that AstLinux will sync against
-##upon bootup. It is also the server that the running ntpd process will use
-##to maintain that time sync.
-NTPSERV="us.pool.ntp.org"
-#NTPSERV="europe.pool.ntp.org"
-#NTPSERV="north-america.pool.ntp.org"
-#NTPSERV="south-america.pool.ntp.org"
-#NTPSERV="asia.pool.ntp.org"
-#NTPSERV="oceania.pool.ntp.org"
-#NTPSERV="africa.pool.ntp.org"
-
-##If you would like to specify several servers to be used at the same time,
-##you can specify them in NTPSERVS seperated by spaces.
-#NTPSERVS="ntp1.cs.wisc.edu us.pool.ntp.org"
-
-##Dynamic DNS Support
-##For a list of valid DDSERVICE names, see the ouput of "inadyn".
-#DDSERVICE=
-#DDUSER=
-#DDPASS=
-#DDHOST=
-
-##Netmon Support
-##Netmon is a daemon that runs to monitor your internet connection. By default,
-##it will try to ping the default gateway of the system. If the gateway cannot
-##be reached, netmon will take the action you have defined in your action script.
-##/etc/netmon.script and /mnt/kd/netmon.script - if they are executable.
-##AND attempt to restart the connection, based on the connection type.
-##You can also set the destination address manually, if you wish.
-#NETMON=YES
-#CHKHOST="www.google.com"
-#CHKMETH="ICMP" # ICMP ping
-#CHKMETH="ARP" #arping (remember uses ARP - layer 2)
-
-##WAN Simulator
-##AstLinux is built with nistnet, a great WAN simulator.
-##It is supported in the web interface, but you can also use the cnistnet
-##command line application. It does interfere with Asterisk operation, so it
-##is not loaded by default. Uncomment this variable to enable it.
-#NISTNET=yes
-
-###Traffic Shaping (AstShape)
-
-##This is typical for a lot of cable ISPs (at least for RR here in Wisconsin...)
-##Please change it after some testing, and make sure that it is %90 of your tested
-##link speed. This prevents queing that destroys latency - very important for VOIP.
-##Disabled by default. Uncomment EXTUP & EXTDOWN to enable...
-#EXTUP=300
-#EXTDOWN=2000
-
-##Traffic from asterisk is moved into the top Q because I set tos=0x18
-##which is automatically given highest priority by astshape. Perfect, huh?
-
-##low priority OUTGOING traffic - you can leave this blank if you want
-##low priority source netmasks
-NOPRIOHOSTSRC=
-
-##low priority destination netmasks
-NOPRIOHOSTDST=
-
-##low priority source ports
-NOPRIOPORTSRC=
-
-##low priority destination ports
-NOPRIOPORTDST=
-
-###Upgrade Config
-##This is a list of pathnames to exclude in an upgrade attempt. #
-##The update script will not touch/replace/look in any directory
-##specified below. For help you should look at the rsync man pages
-##or "rsync --help".
-
-##This does not work and has been replaced by a static /etc/astup.ex (for now)
-#ASTUPEX="/dev/* /proc/* /mnt/kd/* /tmp/* /stat/* /var/*"
-
-###Service Advertisement
-##If you define ADNAME, I will advertise all of the available services on
-##your AstLinux machine in a way that is compatible with bonjour/rendezvous.
-##THIS IS VERY INSECURE, THIS SHOULD BE THE FIRST THING YOU DISABLE
-ADNAME="AstLinux PBX"
-
-###Hardware
-
-##Autoload Modules
-##If /etc/rc.modules does not exist, then I will load these modules upon
-##system startup.
-AUTOMODS="rtc 3c59x typhoon tulip eepro100 natsemi forcedeth
-8139cp 8139too via-rhine pcnet32 acenic e1000 ns83820 r8169 tg3"
-
-##LMSensors Modules
-##List your hardware modules, seperated by spaces
-##You will also need to create a sensors.conf
-#SENSEMODS="vt1211"
-
-##Zaptel hardware support (NOT Sangoma - use "wancfg")
-##These are the modules that will get loaded\unloaded by the Zaptel ##
-##Init script. Please move the zaptel modules from /etc/rc.modules ##
-##or AUTOMODS to here. If you don't have any zap hardware, leave ##
-##this undefined and ztdummy will be loaded automatically. ##
-#ZAPMODS="wctdm"
-
-##Configure watchdog
-##The first is the kernel module to load
-##Next is the timeout period
-#WDMODULE=scx200_wdt
-#WDTIME=60
-
-##ISDN Configuration
-##If this variable exists I will try to load the proper modules, but you
-##need to tell me how you want to setup your card.
-##Documentation can be found at: http://www.beronet.com/download/card_installation_guide_en.pdf
-##More can be found at: http://home.foni.net/~jolly1/download/PBX4Linux-2.5.html
-##Don't forget to edit misdn.conf and modules.conf in /etc/asterisk.
-##Examples:
-#ISDN_MODPROBE="hfcpci protocol=0x2 layermask=0xf"
-#ISDN_MODPROBE="hfcmulti type=0x08 protocol=0x12,0x12,0x12,0x12,0x2,0x2,0x2,0x2 layermask=0x3,0x3,0x3,0x3,0xf,0xf,0xf,0xf"
-#ISDN_MODPROBE="hfcmulti type=0x04 protocol=0x12,0x12,0x2,0x2 layermask=0x3,0x3,0xf,0xf"
-#ISDN_MODPROBE="avmfritz protocol=0x2 layermask=0xf debug=0x0"
-
-##IDE Drive configuration
-##From 0.2.5.6 onwards, DMA is disabled on the GRUB command line.
-##I was having too many problems with motherboards detecting CF's
-##as capable of DMA. Now I turn DMA off for eveything except the
-##devices listed below.
-#DMA_DEV="/dev/hdc"
-
-##Blinkenlights
-##I have a simple script to make the lights on Soekris/WRAP boards blink.
-##It supports a few options. LED_NUM is the number to blink.
-##WRAP supports 2 (error), or 3 (extra) - default
-##Soekris supports 2 (error)
-##LED_TIME is the number of seconds to wait between blinking cycles. 1 is the default.
-#LED_NUM=3
-#LED_TIME=1
-
-##APC UPS Support via apcupsd
-##If you have built AstLinux with apcupsd support, you can monitor and safely shut down
-##the system (as well as perform other actions) upon the loss of power when connected to
-##a UPS that monitors this. Here you can specify the UPS type and UPS cable. I like
-##usb because it is very simple to configure.
-##If you are using something OTHER than usb, you can specify the device node to
-##communicate with the device using UPSDEVICE. IF YOU ARE USING USB, LEAVE THIS BLANK!!
-#UPSTYPE="usb"
-#UPSCABLE="usb"
-#UPSDEVICE=""
-
-###Misc. AstLinux
-
-##AstBack Configuration
-ASTBACK_PATHS="/etc/asterisk/* /var/spool/asterisk/voicemail/* /mnt/kd/rc.conf"
-##If you use the web interface for backup you CANNOT change the following
-ASTBACK_FILE="/tmp/backup.tar.gz"
-
-##Custom tmpfs sizes
-##here is where you can increase or decrease the size of the various
-##tmpfs filesystems. If you set these too large, it is possible for
-##the system to use all available RAM, in which case the Linux kernel
-##will start randomly killing processes to free up memory. You have
-##been warned!
-#VAR_SIZE="25000k"
-#TMP_SIZE="10000k"
-
-###Daemons
-
-##Asterisk Manager Proxy
-##Here you can define the username and password used to connect to
-##the Asterisk manager interface. You will need to make sure that
-##the manager is enabled and this username and password are the same.
-#ASTMANPROXY_USER="admin"
-#ASTMANPROXY_PASS="password"
-
-##FTP support
-##vsftpd no longer starts by default. To start it from inetd, set
-##inetd. For standalone mode, set vsftpd
-FTPD=inetd
-
-##Configure TFTPD support
-##Works the same as FTPD above.
-TFTPD=inetd
-
-##TFTP Server options (flags to pass to TFTP)
-##This only works in standalone TFTP server mode
-#TFTPDOPTIONS="-l -s /tftpboot"
-
-##FTP Server options (flags to pass to vsftpd)
-## This only works in standalone vsftpd server mode
-#FTPDOPTIONS="/etc/vsftpd.conf"
-
-##Use ISC-dhcpd
-##Uncomment the following to use ISC dhcpd. If you do this, you will be
-##solely responsible for maintaining /etc/dhcpd.conf, and dnsmasq will be
-##disabled. Advanced users only!
-##YOU WILL NEED ASTLINUX-OPT TO USE ISC-DHCPD!
-#DHCPDOPTS="eth1"
-
-##Use Bind Named
-##Uncomment the following to use BIND. If you do this, you will be
-##solely responsible for maintaining /etc/named.conf, and dnsmasq will be
-##disabled. Advanced users only!
-##YOU WILL NEED ASTLINUX-OPT TO USE NAMED!
-#NAMEDOPTS="-n1"
-
-##Secondary HTTP only server
-##If you set HTTPDIR, I will startup another instance of mini_httpd to
-##serve files from that directory. HTTPUSER is the user the server will
-##run as.
-HTTPDIR="/tftpboot"
-HTTPUSER="nobody"
-HTTPCGI="no" # yes|no to enable CGI (just like for HTTPS)
-
-##HTTPS Variables
-HTTPSDIR="/stat/var/www" # Define the location to serve HTTPS from
-HTTPSCGI="yes" # Whether to enable CGI in the above path
-HTTPSCERT="/etc/ssl/mini_httpd.pem" # Path to the https certificate
-HTTPSUSER="root" #user to run HTTPS under
-
-##NTPD Variables
-#Enable NTP broadcasts to local LAN(s). Use with something like
-#Tardis (win32) or ntpd (listen mode).
-#NTPBROADCAST=no
-
-##Static hosts for local resolver + DNSMasq
-##This should be a space-seperated list of hostname and IP
-##address pairs seperated by colons. Configure as many
-##as you wish
-#STATHOSTS="server1:192.168.1.11 server2:192.168.1.12"
-
-##Remote Syslog Config
-##The machine below will receive all logging messages from this machine via
-##syslog's remote logging features.
-#SYSLOGHOST=""
-
-##Persistent Logs
-##If this variable is defined, logs are saved to the keydisk instead of RAM
-#PERSISTLOG=yes
-
-##NFSROOTPATH
-##For diskless clients, the path to use for a root filesystem.
-#NFSROOTPATH="$INTIP:/mnt/kd/nfsroot"
-
-##NFS Server support (read only exports)
-#NFS_EXPORTS_RO="/tftpboot"
-
-##Read/write
-#NFS_EXPORTS_RW="/home"
-
-##BOOTPFILE
-##For diskless clients, the image to use for booting.
-#BOOTPFILE="/pxelinux.0"
-
-##rtpproxy support
-##If your build was built with rtpproxy support, you can configure the
-##listen IP here. This is really only useful if you have OpenSER too
-##You can use other variables from this file
-#RTPPROXY_IP="$EXTIP"
-
-###Mail Config
-
-##This is the SMTP server that all mail from cron, etc. on this
-##system will be sent through. This includes Asterisk VM notifications.
-#SMTP_SERVER=""
-
-##SMTP_DOMAIN
-##The from domain of SMTP messages.
-#SMTP_DOMAIN="mysite.com"
-
-##SMTP_HOSTNAME
-##The from hostname of SMTP messages.
-#SMTP_HOSTNAME="pbx"
-
-##If SMTP_TLS is defined, we will use TLS. You should have a trusted cert list and define its location with SMTP_CA. Optionally, you can turn off the certificate verification. This is a security risk!
-##to the location of a trusted cert list.
-#SMTP_TLS=YES
-#SMTP_CA=/stat/etc/ca.crt # some file
-#SMTP_CERTCHECK=off
-
-##The username and password for communicating with the SMTP server.
-#SMTP_USER=username
-#SMTP_PASS=password
-
-##The SMTP login method (plain or login are supported)
-#SMTP_AUTH=plain
-
-##SMTP port to connect to SMTP_SERVER on. Defaults to 25
-#SMTP_PORT="25"
-
-##SSHD Config
-#SSHDPORT=22
-
-##Allow sshd root logins? Yes or no are acceptable.
-#SSHDROOT=yes
-
-###VPN Support
-
-##AstLinux currently supports two types of VPN - racoon/KAME and
-##openvpn. Set your type here, more to come...
-#VPN=openvpn
-
-##OpenVPN specific options
-##All certs must be created manually.
-##Suggest using the "easy-rsa" scripts that come with OpenVPN
-##Perhaps on different machine, then copy the appropriate files
-##Hopefully these can be created with a web interface in the future.
-## NOTE: if you are using astlinux in pbx only mode, you must enable ip_forwarding
-## Both astfw and arno's firewall do this for you.
-##VPN above must be openvpn
-#OVPN_DEV="tun"
-#OVPN_PORT="1194"
-#OVPN_PROTOCOL="udp"
-#OVPN_CA="/etc/openvpn/easy-rsa/keys/ca.crt"
-#OVPN_CERT="/etc/openvpn/easy-rsa/keys/server.crt"
-#OVPN_KEY="/etc/openvpn/easy-rsa/keys/server.key"
-#OVPN_DH="/etc/openvpn/easy-rsa/keys/dh1024.pem"
-#OVPN_SERVER="192.168.15.0 255.255.255.0"
-#OVPN_VERBOSITY="1"
-#OVPN_PUSH1="route 192.168.0.0 255.255.255.0"
-#OVPN_PUSH2=""
-#OVPN_PUSH3=""
-#OVPN_PUSH4=""
-#OVPN_OTHER1=""
-#OVPN_OTHER2=""
-## Enable LZO compression on thevpn yes|no
-## Requires additional cpu resources
-#OVPN_LZO="yes"
-
-##Stunnel support. If your AstLinux build has been built with
-##Stunnel, you can setup local stunnel connections here like so:
-## "astlinux listening port:remote server:remote port"
-##Seperate multiple tunnels with spaces
-##Don't forget to open the external port with EXTOPEN!
-#STUNNELSERVS="8443:192.168.111.11:80 993:mailserver:143"
-
-##Custom stunnel cert. By default we use the same cert as
-##mini_httpd.
-#STUNNELCERT="/mnt/kd/stunnel.pem"
-
-##Stunnel user/group id. By default we will run stunnel as nobody
-##this is fine unless you need to run as some other user because
-##you need to bind to a port > 1023, etc. You will also need to
-##have a group by the same name.
-#STUNNELUSER="nobody"
-
-###Vendor Tweaks
-
-##ISSUE is what is presented on running gettys (console)
-ISSUE="This is \n\ (\s \m \r) \t"
-
-##/etc/issue.net is used by SSHD, more to come
-NETISSUE="WARNING!!!
-This system is solely for the use of authorized users for official purposes.
-You have no expectation of privacy in its use and to ensure that the system
-is functioning properly, individuals using this computer system are subject
-to having all of their activities monitored and recorded by system
-personnel. Use of this system evidences an express consent to such
-monitoring and agreement that if such monitoring reveals evidence of
-possible abuse or criminal activity, system personnel may provide the
-results of such monitoring to appropriate officials."
-
-##Upgrade URL
-##Make it easier to do your own build by specifying your own upgrade URL
-##here. Astup will use this server instead of the default.
-#ASTUPURL="http://mirror.astlinux.org/runnix"
-
-##Auto upgrade?
-##If you specify AUTOUP, astup will not ask for confirmation when you run
-##it.
-#AUTOUP=yes
-
-##Runnix Device
-##For now, you need to specify the flash device that runnix is installed on
-#RUNDEV=/dev/hda1
-
-
-##AstLinux Extensions
-##If you wish, you can enable some add-on extensions. These may be
-##commercial products that require a license. You shouldn't touch
-##this unless you know what you are doing, or have been told to.
-#EXTENSIONS="pbxware"
-
-
-## End rc.conf ##
Added: branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/astfw.conf
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/astfw.conf (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/astfw.conf 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,2 @@
+MASQPORTS="30000-60000"
+DMZSRC="208.38.146.96/27"
Added: branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/dns.conf
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/dns.conf (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/dns.conf 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1 @@
+LOCALDNS=yes
Added: branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/main.conf
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/main.conf (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/main.conf 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,39 @@
+
+ASTBACK_PATHS="/etc/asterisk/* /var/spool/asterisk/voicemail/* /mnt/kd/rc.conf"
+ASTBACK_FILE="/tmp/backup.tar.gz"
+
+ASTMANPROXY_USER="admin"
+ASTMANPROXY_PASS="1234"
+
+FTPD=inetd
+
+TFTPD=inetd
+
+HTTPDIR="/tftpboot"
+HTTPUSER="nobody"
+
+HTTPSDIR="/tmp/www"
+HTTPSCGI="yes"
+HTTPSCERT="/etc/ssl/mini_httpd.pem"
+HTTPSUSER="root"
+
+ISSUE="Starbox Administrator Login \t"
+
+NETISSUE="WARNING!!!
+This system is solely for the use of authorized users for official purposes.
+You have no expectation of privacy in its use and to ensure that the system
+is functioning properly, individuals using this computer system are subject
+to having all of their activities monitored and recorded by system
+personnel. Use of this system evidences an express consent to such
+monitoring and agreement that if such monitoring reveals evidence of
+possible abuse or criminal activity, system personnel may provide the
+results of such monitoring to appropriate officials."
+
+ASTUPURL="http://prov.star2star.com/sbox"
+
+RUNDEV=/dev/hda1
+
+TMP_SIZE="30000k"
+
+
+
Added: branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/net.conf
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/net.conf (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/rc.conf.d/net.conf 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,15 @@
+DOMAIN=s2s.int
+HOSTNAME=pbx
+EXTIF=eth0
+INTIF=eth1
+INTIP=10.40.47.1
+INTNM=255.255.255.0
+INT2IF="eth2.41"
+INT2IP=10.41.22.99
+INT2NM=255.255.255.0
+DMZTYPE=extonly
+PPPOEKERNEL="YES"
+DENYACT="DROP"
+EXTOPEN="t22 u161 u5060 u19000:20000 t443 t5038 t5039 i8"
+NTPSERV="128.105.39.11"
+VLANS="eth2.41"
Added: branches/s2s/target/generic/target_skeleton/stat/etc/rc.elocal
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/rc.elocal (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/rc.elocal 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,95 @@
+#!/bin/sh
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/mnt/kd/bin
+MAC=`mymac eth2 | tr -d :`
+DOM=disc.star2star.com
+PROXY=sip.star2star.com
+CPATH=/tmp/etc/asterisk
+
+touch /tmp/etc/dnsmasq-prov.conf
+
+cp -a /stat/var/www /tmp/www
+
+mkdir -p $CPATH/includes
+
+if [ -d /mnt/kd/asterisk ]
+then
+echo "Old keydisk - cleaning..."
+rm -rf /mnt/kd/asterisk
+fi
+
+if [ -f /mnt/kd/asterisk.s2s/sip.conf ]
+then
+echo "Old keydisk - cleaning..."
+rm -rf /mnt/kd/asterisk.s2s/*
+fi
+
+echo "register => $MAC@$DOM:bogus:$MAC@$PROXY" > $CPATH/includes/sip_discovery.conf
+
+cp -a /stat/etc/asterisk/* $CPATH
+cp -a /mnt/kd/asterisk.s2s/* $CPATH/ 2> /dev/null
+
+mount -o ro,remount / 2> /dev/null
+umount /oldroot 2> /dev/null
+
+if [ -f /mnt/kd/rc.conf -o -d /mnt/kd/rc.conf.d ]
+then
+echo "Keydisk mounted"
+mount -o remount,noatime /mnt/kd
+else
+echo "Keydisk not found - creating one..."
+
+for i in `cat /proc/cmdline`
+do
+if `echo $i | grep -q "astkd="`
+then
+KDDEV=`echo $i | grep "astkd=" | sed -e 's/astkd=//'`
+fi
+done
+
+umount $KDDEV 2> /dev/null
+umount /mnt/kd 2> /dev/null
+
+echo "Creating filesystem..."
+mke2fs -q -L ASTKD $KDDEV
+
+mount -t ext2 -o noatime,sync $KDDEV /mnt/kd
+
+echo "Copying files..."
+# cp -a /stat/etc/asterisk /mnt/kd/asterisk.s2s
+
+mkdir /mnt/kd/tftpboot
+mkdir /mnt/kd/ssh
+
+cp -a /stat/etc/ssh/* /mnt/kd/ssh/
+echo "Generating ssh hostkeys..."
+/usr/bin/ssh-keygen -t rsa1 -b 1024 -f /mnt/kd/ssh/ssh_host_key -N ''
+/usr/bin/ssh-keygen -d -f /mnt/kd/ssh/ssh_host_dsa_key -N ''
+/usr/bin/ssh-keygen -t rsa -f /mnt/kd/ssh/ssh_host_rsa_key -N ''
+
+mkdir /mnt/kd/home
+mkdir /mnt/kd/monitor
+mkdir /mnt/kd/www
+
+touch /mnt/kd/dnsmasq.leases
+
+if [ -d /stat/etc/wanpipe ]
+then
+cp -a /stat/etc/wanpipe /mnt/kd/
+fi
+
+mkdir /mnt/kd/crontabs
+
+mkdir /mnt/kd/voicemail
+
+touch /mnt/kd/astdb
+
+mkdir /mnt/kd/rc.conf.d
+
+#copy the rc.conf that we have right now
+cp -a /tmp/etc/rc.conf /mnt/kd/rc.conf.d/main.conf
+
+echo "Rebooting. Please wait."
+sleep 2
+reboot
+fi
Property changes on: branches/s2s/target/generic/target_skeleton/stat/etc/rc.elocal
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/s2s/target/generic/target_skeleton/stat/etc/rc.local
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/rc.local (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/rc.local 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,21 @@
+#!/bin/sh
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/mnt/kd/bin
+
+if [ ! -d /mnt/kd/www ]
+then
+mkdir /mnt/kd/www
+fi
+
+klogd
+
+if [ -x /usr/sbin/sup ]
+then
+/usr/sbin/sup
+else
+echo "no sup"
+fi
+
+cp -a /mnt/kd/www/* /tmp/www/
+
+# provision on startup
+# php -f /tmp/www/prov/config.php action=PROVISIONALL
Property changes on: branches/s2s/target/generic/target_skeleton/stat/etc/rc.local
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/s2s/target/generic/target_skeleton/stat/etc/snmp/snmpd.conf
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/snmp/snmpd.conf (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/snmp/snmpd.conf 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,157 @@
+###########################################################################
+#
+# snmpd.conf
+#
+# - created by the snmpconf configuration program
+#
+
+
+
+
+
+
+###########################################################################
+# SECTION: Trap Destinations
+#
+# Here we define who the agent will send traps to.
+
+# trapsink: A SNMPv1 trap receiver
+# arguments: host [community] [portnum]
+
+#trapsink 192.168.0.27
+
+# trap2sink: A SNMPv2c trap receiver
+# arguments: host [community] [portnum]
+
+#trap2sink 192.168.0.27
+
+# informsink: A SNMPv2c inform (acknowledged trap) receiver
+# arguments: host [community] [portnum]
+
+#informsink 192.168.0.27
+
+# trapcommunity: Default trap sink community to use
+# arguments: community-string
+
+#trapcommunity public
+
+# authtrapenable: Should we send traps when authentication failures occur
+# arguments: 1 | 2 (1 = yes, 2 = no)
+
+#authtrapenable 1
+
+
+
+###########################################################################
+# SECTION: System Information Setup
+#
+# This section defines some of the information reported in
+# the "system" mib group in the mibII tree.
+
+# syslocation: The [typically physical] location of the system.
+# Note that setting this value here means that when trying to
+# perform an snmp SET operation to the sysLocation.0 variable will make
+# the agent return the "notWritable" error code. IE, including
+# this token in the snmpd.conf file will disable write access to
+# the variable.
+# arguments: location_string
+
+syslocation "Star2Star CPE"
+
+# syscontact: The contact information for the administrator
+# Note that setting this value here means that when trying to
+# perform an snmp SET operation to the sysContact.0 variable will make
+# the agent return the "notWritable" error code. IE, including
+# this token in the snmpd.conf file will disable write access to
+# the variable.
+# arguments: contact_string
+
+syscontact qm...@st...
+
+# sysservices: The proper value for the sysServices object.
+# arguments: sysservices_number
+
+sysservices 76
+
+
+
+###########################################################################
+# SECTION: Access Control Setup
+#
+# This section defines who is allowed to talk to your running
+# snmp agent.
+
+# rwuser: a SNMPv3 read-write user
+# arguments: user [noauth|auth|priv] [restriction_oid]
+
+rwuser private auth
+
+# rouser: a SNMPv3 read-only user
+# arguments: user [noauth|auth|priv] [restriction_oid]
+
+rouser public auth
+
+# rocommunity: a SNMPv1/SNMPv2c read-only access community name
+# arguments: community [default|hostname|network/bits] [oid]
+
+rocommunity public
+
+# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
+# arguments: community [default|hostname|network/bits] [oid]
+
+#rwcommunity private
+
+
+
+###########################################################################
+# SECTION: Monitor Various Aspects of the Running Host
+#
+# The following check up on various aspects of a host.
+
+# proc: Check for processes that should be running.
+# proc NAME [MAX=0] [MIN=0]
+#
+# NAME: the name of the process to check for. It must match
+# exactly (ie, http will not find httpd processes).
+# MAX: the maximum number allowed to be running. Defaults to 0.
+# MIN: the minimum number to be running. Defaults to 0.
+#
+# The results are reported in the prTable section of the UCD-SNMP-MIB tree
+# Special Case: When the min and max numbers are both 0, it assumes
+# you want a max of infinity and a min of 1.
+
+proc asterisk 0 1
+proc sshd 0 1
+proc mini_httpd 0 1
+
+# disk: Check for disk space usage of a partition.
+# The agent can check the amount of available disk space, and make
+# sure it is above a set limit.
+#
+# disk PATH [MIN=100000]
+#
+# PATH: mount path to the disk in question.
+# MIN: Disks with space below this value will have the Mib's errorFlag set.
+# Can be a raw byte value or a percentage followed by the %
+# symbol. Default value = 100000.
+#
+# The results are reported in the dskTable section of the UCD-SNMP-MIB tree
+
+disk /mnt/kd 20%
+
+# load: Check for unreasonable load average values.
+# Watch the load average levels on the machine.
+#
+# load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
+#
+# 1MAX: If the 1 minute load average is above this limit at query
+# time, the errorFlag will be set.
+# 5MAX: Similar, but for 5 min average.
+# 15MAX: Similar, but for 15 min average.
+#
+# The results are reported in the laTable section of the UCD-SNMP-MIB tree
+
+load 5 10 15
+
+
+
Added: branches/s2s/target/generic/target_skeleton/stat/etc/ssh/sshd_config
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/ssh/sshd_config (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/ssh/sshd_config 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,14 @@
+Protocol 2
+Port 22
+ListenAddress 0.0.0.0
+PermitRootLogin yes
+
+Subsystem sftp /usr/sbin/sftp-server
+Banner /etc/issue.net
+
+RSAAuthentication yes
+PubkeyAuthentication yes
+AuthorizedKeysFile .ssh/authorized_keys
+
+PasswordAuthentication no
+ChallengeResponseAuthentication no
Added: branches/s2s/target/generic/target_skeleton/stat/etc/ssh_keys/kk.pub
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/ssh_keys/kk.pub (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/ssh_keys/kk.pub 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1 @@
+ssh-dss AAAAB3NzaC1kc3MAAAEBALNdKl9b+PBQIEEUMj8TTChidWKietnkPZGw85UffTgILuSGNl4lKCRW5t/I2Ubeef7IbSqVFaqy0+P7rQ+IGqYqgIyaFIa74Aohb8cwECDXUl++nPU2o8oXz+3QIOl/RvQ/8Su7R7TGo7FrLHTumAItFn/zNmHge9zP50AoUDBZEyDYi+QJrt2zKmBFpIEiUjC1ymu22Nodi4mC/C6jS6ILJQT4/sBik2Zn43o5PGnV9OctUCEEiZQ1P5BK/ED7GC6XOV6BSCcvNfhdvQuEsjQDtcrGpOgGHbBxSGJ4zNCYmhHV71FF4tJBw6liBMZEV1g3HGU3w12jcMaqP7eoKD8AAAAVAKqcre4yE0Un18g0u0MVrQp0z6WDAAABAQCDULWYKqP6Alhw7xiIe3wtApDkuWLUcwOFOkj3iL2e5K9QiK6nBQCHB/icOaK4zEmZHLVZUFRkiXMbvTV+Nj6UTB9Qfo44z41K5L4XEiC685CB5IYyujNIkc6DyEGztVEPOJIjJFrsiA26hk+CM4s+N/ueUIGm6sZruTbvaUSWrQufJAe2DI00Xi3ocmPzh7vnaaTcwh3YWguodDy8r4nWaeoPPjWctyxYqrcf+Xj5n0hz+UG4YQeftAztkMx8b/7VGUihMLNDF6p4qVuXolMaieGKfvqY31tk/Bz5biQjyBXx73R4TdwiD9MydVlstXPKTnSBy7vR/0Yq0UMkJEEBAAABABEY0IbGlnUhtbRgZmu9cVnWSugn73aVxSB4uPokx/zvXq2Ydl0sphZGw1wwyEf5fd5uXZ+G5N6TCNi/+yBltiwYI9/UCAzYE3ALI4oHeCQezYdh01Ciwd4YcVVp+5dDNW2n7Zrr8FPqqAsuvBYZIgDj6YR93opx61bFMGuCw1hKSr33JBoZtEBR3wsIF9VTVb47va6bRKCzp+8WzDYBRpMIWhkGmO6bmHvd5gAexeL00RGIp1CJlcrL2+sARUfV+qqYMDYO5x7PgEbCVylPzZP5dDtPWJHAovfXedr66v8K1SfOyp19o9clcFAQk96bWL60vu1gvWRguDmCMfc02jc= Kristian Kielhofner - KrisCompanies, LLC
Added: branches/s2s/target/generic/target_skeleton/stat/etc/ssh_keys/s2s-prov.pub
===================================================================
--- branches/s2s/target/generic/target_skeleton/stat/etc/ssh_keys/s2s-prov.pub (rev 0)
+++ branches/s2s/target/generic/target_skeleton/stat/etc/ssh_keys/s2s-prov.pub 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1 @@
+ssh-dss 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 ro...@pr...
Added: branches/s2s/target/generic/target_skeleton/usr/bin/exe
===================================================================
--- branches/s2s/target/generic/target_skeleton/usr/bin/exe (rev 0)
+++ branches/s2s/target/generic/target_skeleton/usr/bin/exe 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,161 @@
+#!/bin/sh
+
+ARG=$2
+
+case $1 in
+
+reboot)
+reboot -d 5
+;;
+
+reload)
+asterisk -rx "reload"
+;;
+
+open)
+service iptables stop
+;;
+
+restart)
+service asterisk restart
+;;
+
+poweroff)
+poweroff
+;;
+
+test)
+logger "Asterisk exe test"
+;;
+
+mwion)
+if [ ! $ARG ]
+then
+logger "mwion called with no argument"
+exit 1
+fi
+
+if [ ! -d /var/spool/asterisk/voicemail/remote/$ARG/INBOX ]
+then
+mkdir -p /var/spool/asterisk/voicemail/remote/$ARG/INBOX
+fi
+
+touch /var/spool/asterisk/voicemail/remote/$ARG/INBOX/msg0000.txt
+;;
+
+mwioff)
+if [ ! $ARG ]
+then
+logger "mwioff called with no argument"
+exit 1
+fi
+
+if [ ! -d /var/spool/asterisk/voicemail/remote/$ARG/INBOX ]
+then
+mkdir -p /var/spool/asterisk/voicemail/remote/$ARG/INBOX
+fi
+
+rm /var/spool/asterisk/voicemail/remote/$ARG/INBOX/msg0000.txt
+;;
+
+gsnotify)
+if [ ! $ARG ]
+then
+logger "sipnotify called with no argument"
+exit 1
+fi
+
+asterisk -rx "sip notify grandstream-check-cfg $ARG"
+;;
+
+pcomnotify)
+if [ ! $ARG ]
+then
+logger "sipnotify called with no argument"
+exit 1
+fi
+
+asterisk -rx "sip notify polycom-check-cfg $ARG"
+;;
+
+preboot)
+if [ ! $ARG ]
+then
+logger "preboot called with no argument"
+exit 1
+fi
+/usr/sbin/preboot $ARG
+;;
+
+ledon)
+service errorled on
+;;
+
+ledoff)
+service errorled off
+;;
+
+astup)
+/usr/sbin/astup
+;;
+
+sup)
+/usr/sbin/sup
+;;
+
+prov)
+if [ ! $ARG ]
+then
+logger "prov called with no argument"
+exit 1
+fi
+
+if [ -f /tmp/prov ]
+then
+exit
+fi
+touch /tmp/prov
+rm -rf /tmp/starbox_* /tmp/starbox.tar.gz 2> /dev/null
+
+if `wget -q -O /tmp/starbox.tar.gz "http://prov.star2star.com/pickup.php?hash=$ARG" 2> /dev/null`
+then
+
+tar -xzf /tmp/starbox.tar.gz -C /tmp/
+mkdir -p /mnt/kd/asterisk.s2s/includes
+cp -a /tmp/starbox_*/asterisk/* /mnt/kd/asterisk.s2s/includes/
+cp -a /tmp/starbox_*/asterisk/* /tmp/etc/asterisk/includes/
+cp -a /tmp/starbox_*/tftpboot/* /mnt/kd/tftpboot/
+
+mkdir -p /mnt/kd/cprompts
+mkdir -p /mnt/kd/moh
+
+rsync -a --delete --ignore-errors /tmp/starbox_*/cprompts/* /mnt/kd/cprompts/
+rsync -a --delete --ignore-errors /tmp/starbox_*/moh/* /mnt/kd/moh/
+
+chown -R root:root /mnt/kd/asterisk.s2s/
+chown -R root:root /tmp/etc/asterisk/
+chown -R root:root /mnt/kd/tftpboot
+chown -R root:root /mnt/kd/cprompts
+chown -R root:root /mnt/kd/moh
+
+
+chmod -R 750 /tmp/etc/asterisk
+chmod -R 750 /mnt/kd/asterisk.s2s
+chmod -R 750 /mnt/kd/cprompts
+chmod -R 750 /mnt/kd/moh
+
+chmod -R 755 /mnt/kd/tftpboot
+rm -rf /tmp/starbox_*
+rm -rf /tmp/starbox.tar.gz
+sync
+else
+rm /tmp/prov
+exit 1
+fi
+rm /tmp/prov
+;;
+
+*)
+;;
+
+esac
Property changes on: branches/s2s/target/generic/target_skeleton/usr/bin/exe
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/s2s/target/generic/target_skeleton/usr/bin/mymac
===================================================================
--- branches/s2s/target/generic/target_skeleton/usr/bin/mymac (rev 0)
+++ branches/s2s/target/generic/target_skeleton/usr/bin/mymac 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ ! $1 ]
+then
+echo "Usage:
+
+$0 [interface]"
+exit 1
+fi
+
+ifconfig $1 | awk '/HWaddr/ {print $5}'
Property changes on: branches/s2s/target/generic/target_skeleton/usr/bin/mymac
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/s2s/target/generic/target_skeleton/usr/bin/prov
===================================================================
--- branches/s2s/target/generic/target_skeleton/usr/bin/prov (rev 0)
+++ branches/s2s/target/generic/target_skeleton/usr/bin/prov 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+PATH="/mnt/kd/bin:/usr/bin:/usr/sbin:/bin:/sbin"
+
+IPBASE=10.45.15
+CFILE=/tmp/etc/dnsmasq-prov.conf
+INT=eth3
+
+case $1 in
+
+start|on)
+iptables -F USER-INPUT
+iptables -A USER-INPUT -i $INT -j ACCEPT
+if `ifconfig $INT $IPBASE.1 netmask 255.255.255.0`
+then
+echo "$INT not found"
+exit 1
+else
+echo "dhcp-range=prov,$IPBASE.100,10.45.15.252,24h
+dhcp-option=prov,3,$IPBASE.1
+dhcp-option=prov,6,$IPBASE.1
+dhcp-option=prov,42,$IPBASE.1
+dhcp-option=prov,66,$IPBASE.1
+dhcp-option=prov,150,$IPBASE.1" > /tmp/etc/dnsmasq-prov.conf
+service dnsmasq restart > /dev/null
+#kill -HUP `cat /var/run/dnsmasq.pid`
+fi
+;;
+
+stop|off)
+iptables -F USER-INPUT
+iptables -A USER-INPUT -i $INT -j REJECT
+ifconfig $INT down 2> /dev/null
+echo -n > /tmp/etc/dnsmasq-prov.conf
+#kill -HUP `cat /var/run/dnsmasq.pid`
+service dnsmasq restart > /dev/null
+;;
+
+*)
+echo "Usage $0 [start|stop]"
+;;
+
+esac
Property changes on: branches/s2s/target/generic/target_skeleton/usr/bin/prov
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/s2s/target/generic/target_skeleton/usr/sbin/preboot
===================================================================
--- branches/s2s/target/generic/target_skeleton/usr/sbin/preboot (rev 0)
+++ branches/s2s/target/generic/target_skeleton/usr/sbin/preboot 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,57 @@
+#!/bin/bash
+CFILE="/etc/asterisk/includes/sip.conf"
+PSTRING="Polycom"
+GSTRING="Grandstream"
+
+PHONES=`sed -ne "/username=[1-9][0-9][0-9][a-z]/d/username=[1-9][0-9][0-9]/s/username=//p" $CFILE`
+
+if [ ! $1 ]
+then
+echo "Usage:
+
+$0 pcom|gs|extension
+
+pcom - reboot all Polycom devices
+gs - reboot all Grandstream devices
+Extension Number - reboot one extension with autodetect"
+exit 1
+fi
+
+case $1 in
+
+pcom)
+for i in $PHONES
+do
+if `asterisk -rx "sip show peer $i" | grep Useragent | grep -qi $PSTRING`
+then
+asterisk -rx "sip notify polycom-check-cfg $i"
+fi
+done
+;;
+
+gs)
+for i in $PHONES
+do
+if `asterisk -rx "sip show peer $i" | grep Useragent | grep -qi $GSTRING`
+then
+asterisk -rx "sip notify grandstream-check-cfg $i"
+fi
+done
+;;
+
+*)
+UA=`asterisk -rx "sip show peer $1" | grep Useragent | cut -d : -f2`
+
+
+if `echo $UA | grep -qi $GSTRING`
+then
+asterisk -rx "sip notify grandstream-check-cfg $1"
+fi
+
+if `echo $UA | grep -qi $PSTRING`
+then
+asterisk -rx "sip notify polycom-check-cfg $1"
+fi
+;;
+
+esac
Property changes on: branches/s2s/target/generic/target_skeleton/usr/sbin/preboot
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/s2s/target/generic/target_skeleton/usr/sbin/sup
===================================================================
--- branches/s2s/target/generic/target_skeleton/usr/sbin/sup (rev 0)
+++ branches/s2s/target/generic/target_skeleton/usr/sbin/sup 2007-04-18 18:27:17 UTC (rev 851)
@@ -0,0 +1,102 @@
+#!/bin/sh
+
+. /etc/rc.conf
+
+for i in `cat /proc/cmdline`
+do
+if `echo $i | grep -q "astlinux="`
+then
+ASTARCH=`echo $i | grep "astlinux="| sed -e 's/astlinux=//'`
+fi
+done
+
+if [ $1 ]
+then
+echo "Using $1 to override architecture auto-detection..."
+ASTARCH=$1
+fi
+
+if [ ! $ASTARCH ]
+then
+echo "I was not able to determine which version of AstLinux you
+are using. Try this:
+$0 [via|wrap|net4801|geni586|etc]
+"
+exit 1
+fi
+
+if [ $ASTUPURL ]
+then
+URL="$ASTUPURL"/"$ASTARCH"
+else
+echo No upgrade URL
+exit 1
+fi
+
+if `wget -q -O /tmp/ver $URL/sup/ver`
+then
+VER=`cat /tmp/ver`
+else
+echo "Could not get update version"
+exit 1
+fi
+
+if [ -f /mnt/kd/www/prov/ver ]
+then
+OVER=`cat /mnt/kd/www/prov/ver`
+else
+OVER="NONE"
+fi
+
+# do upgrade
+if [ ! "$VER" = "$OVER" ]
+then
+echo "New version: $VER
+Old version: $OVER"
+wget -O /tmp/$VER.tar.gz $URL/sup/$VER.tar.gz
+wget -q -O /tmp/$VER.tar.gz.sha1 $URL/sup/$VER.tar.gz.sha1
+cd /tmp
+
+echo "Verifying download - please wait"
+
+if `sha1sum -cs $VER.tar.gz.sha1`
+then
+echo "Extracting files - please wait."
+mkdir -p /tmp/sup
+mount -t tmpfs none /tmp/sup
+
+if `tar -xzf /tmp/$VER.tar.gz -C /tmp/sup`
+then
+
+if [ -f /tmp/sup/post ]
+then
+mv /tmp/sup/post /tmp/post
+chmod +x /tmp/post
+fi
+
+mount -o rw,remount /
+rsync -a /tmp/sup/* / && mv /tmp/ver /mnt/kd/www/prov/ver
+cp -a /mnt/kd/www/* /tmp/www/
+cp -a /mnt/kd/asterisk.s2s/* /tmp/etc/asterisk/
+mount -o ro,remount /
+umount /tmp/sup
+rm -rf /tmp/sup
+rm -rf /tmp/$VER.tar.gz
+rm -rf /tmp/$VER.tar.gz.sha1
+
+if [ -x /tmp/post ]
+then
+echo "Running post script..."
+/tmp/post
+fi
+
+fi
+
+rm -rf /tmp/ver
+rm -rf /tmp/post
+fi
+rm -rf /tmp/ver
+rm -rf /tmp/post
+fi
+rm -rf /tmp/post
+rm -rf /tmp/ver
Property changes on: branches/s2s/target/generic/target_skeleton/usr/sbin/sup
___________________________________________________________________
Name: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|