|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
# --- T2-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
|
# |
|
|
|
|
# T2 SDE: package/.../stone/stone_mod_network.sh |
|
|
|
|
# Filename: package/.../stone/stone_mod_network.sh |
|
|
|
|
# Copyright (C) 2008 The OpenSDE Project |
|
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
|
|
# |
|
|
|
@ -11,7 +12,7 @@
|
|
|
|
|
# it under the terms of the GNU General Public License as published by |
|
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
|
# --- T2-COPYRIGHT-NOTE-END --- |
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
# |
|
|
|
|
# [MAIN] 20 network Network Configuration |
|
|
|
|
|
|
|
|
@ -139,7 +140,7 @@ add_tag() {
|
|
|
|
|
cmd="$cmd "$module" module='$module'" |
|
|
|
|
done < <( cd $rocknet_base/ ; grep public_ * | sed -e \ |
|
|
|
|
's/\.sh//' -e 's/:.*//' | sort -u ) |
|
|
|
|
module="" |
|
|
|
|
module= |
|
|
|
|
eval $cmd |
|
|
|
|
|
|
|
|
|
cmd="gui_menu add_tag 'Add tag of type'" |
|
|
|
@ -263,7 +264,7 @@ DOMAINNAME="`hostname -d 2> /dev/null`"
|
|
|
|
|
tmp="`mktemp`" |
|
|
|
|
grep '^nameserver ' /etc/resolv.conf | tr '\t' ' ' | tr -s ' ' | \ |
|
|
|
|
sed 's,^nameserver *\([^ ]*\),DNSSRV="$DNSSRV \1",' > $tmp |
|
|
|
|
DNSSRV='' ; . $tmp ; DNSSRV="`echo $DNSSRV`" |
|
|
|
|
DNSSRV= ; . $tmp ; DNSSRV="`echo $DNSSRV`" |
|
|
|
|
[ -z "$DNSSRV" ] && DNSSRV="none" ; rm -f $tmp |
|
|
|
|
|
|
|
|
|
main() { |
|
|
|
|