summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2004-11-19 16:11:24 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2004-11-19 16:11:24 +0000
commitf8e1cd898c78b5da291d31cba070545913ca384d (patch)
tree1fea34c715739a5efe27cf6912f3bb80164bd35f /net-setup
parentAdded coldplug check for bug #68840. (diff)
downloadlivecd-tools-f8e1cd898c78b5da291d31cba070545913ca384d.tar.gz
livecd-tools-f8e1cd898c78b5da291d31cba070545913ca384d.tar.bz2
livecd-tools-f8e1cd898c78b5da291d31cba070545913ca384d.zip
Updating for GameCD
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/livecd-tools/trunk@18 7bf51bff-881f-0410-a643-fba68b97345e
Diffstat (limited to 'net-setup')
-rwxr-xr-xnet-setup13
1 files changed, 8 insertions, 5 deletions
diff --git a/net-setup b/net-setup
index 33a665a..56e953d 100755
--- a/net-setup
+++ b/net-setup
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/livecd-tools/net-setup,v 1.6 2004/10/21 16:06:32 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/livecd-tools/net-setup,v 1.7 2004/11/19 16:11:24 wolf31o2 Exp $
#!/bin/bash
@@ -19,18 +19,18 @@ cd /tmp/setup.opts
dialog --title "Network setup" --menu "This script is designed to setup both wired and wireless network settings. All questions below apply to the ${1} interface only. Choose one option:" 20 60 7 1 "My network is wireless" 2 "My network is wired" 2> ${1}.WIRED
WIRED_WIRELESS=`cat ${1}.WIRED`
-case $WIRED_WIRELESS in
+case ${WIRED_WIRELESS} in
1)
dialog --title "SSID" --inputbox "Please enter your SSID, or leave blank for selecting the nearest open network" 20 50 2> ${1}.SSID
SSID=`cat ${1}.SSID`
if [ -n "${SSID}" ]; then
dialog --title "WEP (Part 1)" --menu "Does your network use encryption?" 20 60 7 1 "Yes" 2 "No" 2> ${1}.WEP
WEP=`cat ${1}.WEP`
- case $WEP in
+ case ${WEP} in
1)
dialog --title "WEP (Part 2)" --menu "Are you entering your WEP key in HEX or ASCII?" 20 60 7 1 "HEX" 2 "ASCII" 2> ${1}.WEPTYPE
WEP_TYPE=`cat ${1}.WEPTYPE`
- case $WEP_TYPE in
+ case ${WEP_TYPE} in
1)
dialog --title "WEP (Part 3)" --inputbox "Please enter your WEP key in the form of XXXX-XXXX-XX for 64-bit or XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX for 128-bit" 20 50 2> ${1}.WEPKEY
WEP_KEY=`cat ${1}.WEPKEY`
@@ -58,11 +58,14 @@ case $WIRED_WIRELESS in
;;
2)
;;
+ *)
+ exit 0
+ ;;
esac
dialog --title "TCP/IP setup" --menu "You can use DHCP to automatically configure a network interface or you can specify an IP and related settings manually. Choose one option:" 20 60 7 1 "Use DHCP to auto-detect my network settings" 2 "Specify an IP address manually" 2> ${1}.DHCP
DHCP=`cat ${1}.DHCP`
-case $DHCP in
+case ${DHCP} in
1)
/sbin/dhcpcd -t 10 ${1} &
;;