Skip to content

Commit ccef5c9

Browse files
committed
bug fixes
2 parents 8294e68 + dba2f7c commit ccef5c9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

setup.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@ esac
7070
read -p "Please enter your Student number: " username
7171
read -p "Please enter your password: " password
7272
# Crontab setting confirm
73+
<<<<<<< HEAD
7374
echo ""
7475
cat mycron
7576
echo ""
7677
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
7781

7882
# Change WIFI Passwprd
7983
read -p "Change your WIFI password? [Y/N]: " ifChange
@@ -143,15 +147,21 @@ N|n)
143147
esac
144148

145149
case $ifChange in
146-
Y|y|"")
150+
Y|y)
147151
uci set wireless.@wifi-iface[0].encryption=psk2
148152
uci set wireless.@wifi-iface[1].encryption=psk2
149153
uci set wireless.@wifi-iface[0].key=$wifi_password
150154
uci set wireless.@wifi-iface[1].key=$wifi_password
151155
wifi
152156
uci commit;;
157+
<<<<<<< HEAD
153158
N|n|*)
154159
echo "password will leave empty";;
160+
=======
161+
N|n)
162+
echo "password will leave empty"
163+
break;;
164+
>>>>>>> dba2f7cf5e6ff7a9fd5136032ed9ccdade7210c7
155165
esac
156166

157167
# Network Checking and Remove Setup Files

0 commit comments

Comments
 (0)