We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 939e603 commit 30ec469Copy full SHA for 30ec469
bin/changewifisettings.sh
@@ -51,7 +51,7 @@ sed -i "/^channel=/c\channel=$NEWCHANNEL" "$CONFIGFILE"
51
# Validate new SSID. Replace it with 'MoodleBox' if invalid.
52
# At this point, $NEWSSID is a string of hex values, e.g. "74657374" for "test"
53
# We want to check that it is valid, and between 8 and 32 bytes.
54
-[[ $NEWSSID =~ ^([0-9a-fA-F]{2}){8,32}$ ]] || NEWSSID="4d6f6f646c65426f78" # "MoodleBox"
+[[ $NEWSSID =~ ^([0-9a-fA-F]{2}){1,32}$ ]] || NEWSSID="4d6f6f646c65426f78" # "MoodleBox"
55
# New SSID is now valid; set it in config file.
56
# Change ssid to ssid2
57
sed -i "/^ssid=/c\ssid2=$NEWSSID" "$CONFIGFILE"
0 commit comments