Skip to content

Commit 4d15147

Browse files
committed
bug fixes
1 parent ccef5c9 commit 4d15147

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

setup.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,10 @@ esac
7070
read -p "Please enter your Student number: " username
7171
read -p "Please enter your password: " password
7272
# Crontab setting confirm
73-
<<<<<<< HEAD
7473
echo ""
7574
cat mycron
7675
echo ""
7776
read -p "Set up cron? [Y|N]" ifSet
78-
=======
79-
read -p "Set up cron?(input one of Y,y,N,n) [Y|N]" ifSet
80-
>>>>>>> dba2f7cf5e6ff7a9fd5136032ed9ccdade7210c7
8177

8278
# Change WIFI Passwprd
8379
read -p "Change your WIFI password? [Y/N]: " ifChange
@@ -147,21 +143,15 @@ N|n)
147143
esac
148144

149145
case $ifChange in
150-
Y|y)
146+
Y|y|"")
151147
uci set wireless.@wifi-iface[0].encryption=psk2
152148
uci set wireless.@wifi-iface[1].encryption=psk2
153149
uci set wireless.@wifi-iface[0].key=$wifi_password
154150
uci set wireless.@wifi-iface[1].key=$wifi_password
155151
wifi
156152
uci commit;;
157-
<<<<<<< HEAD
158153
N|n|*)
159154
echo "password will leave empty";;
160-
=======
161-
N|n)
162-
echo "password will leave empty"
163-
break;;
164-
>>>>>>> dba2f7cf5e6ff7a9fd5136032ed9ccdade7210c7
165155
esac
166156

167157
# Network Checking and Remove Setup Files

0 commit comments

Comments
 (0)