summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/networkconfig.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-03-22 21:05:06 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-03-22 21:05:06 (GMT)
commit7b0f4e6e5e0db55450d2ecbe763f08f6a7a13a51 (patch)
treebc26ae0a868f37e0d707a842f0ee17cd651cbd67 /abs/core-testing/LinHES-config/networkconfig.sh
parentd22ac33924608527b9de7e688ce18be9db604c42 (diff)
downloadlinhes_pkgbuild-7b0f4e6e5e0db55450d2ecbe763f08f6a7a13a51.zip
linhes_pkgbuild-7b0f4e6e5e0db55450d2ecbe763f08f6a7a13a51.tar.gz
linhes_pkgbuild-7b0f4e6e5e0db55450d2ecbe763f08f6a7a13a51.tar.bz2
LinHES-config: Add support for adjusting the MTU from the network configuration screens.
This addition pushed the buttons off the button of the screen, so the margins and divider lines needed to be removed. It's not very pretty but it works.
Diffstat (limited to 'abs/core-testing/LinHES-config/networkconfig.sh')
-rw-r--r--abs/core-testing/LinHES-config/networkconfig.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/abs/core-testing/LinHES-config/networkconfig.sh b/abs/core-testing/LinHES-config/networkconfig.sh
index 38b819a..770aa98 100644
--- a/abs/core-testing/LinHES-config/networkconfig.sh
+++ b/abs/core-testing/LinHES-config/networkconfig.sh
@@ -92,6 +92,7 @@ function setup_interfaces() {
local KEY
local ENCRYPT
local TEMPNET
+ local MTU
IS_WIRELESS=false
#local ip
@@ -118,6 +119,8 @@ function setup_interfaces() {
TEMPNET=HOST_iswireless$1
eval wireless=\$${TEMPNET}
+ TEMPNET=HostMTU$1
+ eval MTU=\$${TEMPNET}
@@ -176,9 +179,6 @@ function setup_interfaces() {
sed -i -e 's/^CONFIG_WIRLESS=.*$/CONFIG_WIRLESS=no/g' $ETCNETDIR/$1/options
fi
-
-
-
if [ x$UseDHCP = x0 ]
then
echo using dhcp
@@ -191,6 +191,16 @@ function setup_interfaces() {
echo "$ip$netmask" > $ETCNETDIR/$1/ipv4address
setup_nameserver $dns
fi
+
+ if [ x$MTU = x ]
+ then
+ echo "MTU is blank, card will use default values"
+ sed -i '/^mtu.*$/d' /etc/net/ifaces/$1/iplink
+ else
+ echo "setting mtu for $1 to $MTU"
+ sed -i '/^mtu.*$/d' /etc/net/ifaces/$1/iplink
+ echo "mtu $MTU " >> /etc/net/ifaces/$1/iplink
+ fi
}