From: <abe...@us...> - 2014-03-07 16:44:10
|
Revision: 6442 http://sourceforge.net/p/astlinux/code/6442 Author: abelbeck Date: 2014-03-07 16:44:05 +0000 (Fri, 07 Mar 2014) Log Message: ----------- phoneprov-tools, also allow ethN and brN interface names to determine the network gateway Modified Paths: -------------- branches/1.0/package/phoneprov-tools/phoneprov-build branches/1.0/package/phoneprov-tools/phoneprov-massdeployment Modified: branches/1.0/package/phoneprov-tools/phoneprov-build =================================================================== --- branches/1.0/package/phoneprov-tools/phoneprov-build 2014-03-07 04:55:12 UTC (rev 6441) +++ branches/1.0/package/phoneprov-tools/phoneprov-build 2014-03-07 16:44:05 UTC (rev 6442) @@ -10,7 +10,7 @@ Options: -f, --force-overwrite Overwrite existing files -h, --help Show this help text - -i, --if-name Interface Name: INTIF, INT2IF, INT3IF, EXTIF, defaults to INTIF + -i, --if-name Interface Name: INTIF, INT2IF, INT3IF, EXTIF, ethN, brN, defaults to INTIF ' exit 1 } @@ -117,11 +117,20 @@ sip_server_if="$EXTIF" sip_server_ipv4="$(find_ipv4_from_if $EXTIF)" ;; + eth*[0-9]|br*[0-9]) + sip_server_if="$if_name" + sip_server_ipv4="$(find_ipv4_from_if $if_name)" + ;; *) usage ;; esac +if [ -z "$sip_server_ipv4" ]; then + echo "phoneprov-build: Invalid Interface: $sip_server_if" >&2 + exit 1 +fi + if [ -z "$mac_addr" -o -z "$ext" ]; then usage fi Modified: branches/1.0/package/phoneprov-tools/phoneprov-massdeployment =================================================================== --- branches/1.0/package/phoneprov-tools/phoneprov-massdeployment 2014-03-07 04:55:12 UTC (rev 6441) +++ branches/1.0/package/phoneprov-tools/phoneprov-massdeployment 2014-03-07 16:44:05 UTC (rev 6442) @@ -13,7 +13,7 @@ -A, --only-user-pass Same as "-a, --auto-user-pass" without further processing -f, --force-overwrite Overwrite existing files -h, --help Show this help text - -i, --if-name Interface Name: INTIF, INT2IF, INT3IF, EXTIF, defaults to INTIF + -i, --if-name Interface Name: INTIF, INT2IF, INT3IF, EXTIF, ethN, brN, defaults to INTIF -p, --partial Partial input, append "dialplan" and "sip" entries to existing ' exit 1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |