Skip to content

Commit

Permalink
wpa_supplicant has now scan_ssid=1 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrisan committed Sep 24, 2014
1 parent ceb5b5d commit 5d00272
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion board/raspberrypi/skeleton/etc/init.d/S35wifi
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if ! [ -f $conf ] || ! [ -s $conf ]; then
exit 0
fi

SSID=$(cat ${conf} | grep ssid | cut -d '"' -f 2)
SSID=$(cat ${conf} | grep ssid | grep -v scan_ssid | cut -d '"' -f 2)

if [ -z "$SSID" ]; then
exit 0
Expand Down
2 changes: 1 addition & 1 deletion board/raspberrypi/skeleton/etc/wpa_supplicant.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ update_config=1
ctrl_interface=/var/run/wpa_supplicant

network={
scan_ssid=1
}

1 change: 1 addition & 0 deletions board/raspberrypi/writeimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ if [ -n "$SSID" ]; then
echo "update_config=1" > $conf
echo "ctrl_interface=/var/run/wpa_supplicant" >> $conf
echo "network={" >> $conf
echo " scan_ssid=1" >> $conf
echo " ssid=\"$SSID\"" >> $conf
if [ -n "$PSK" ]; then
echo " psk=\"$PSK\"" >> $conf
Expand Down
1 change: 1 addition & 0 deletions package/motioneye/motioneye.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ define MOTIONEYE_INSTALL_TARGET_CMDS
mv $(DST_DIR)/settings_default.py $(DST_DIR)/settings.py
sed -i "s%os.path.abspath(os.path.join(PROJECT_PATH, 'conf'))%'/data/etc'%" $(DST_DIR)/settings.py
sed -i "s%os.path.abspath(os.path.join(PROJECT_PATH, 'run'))%'/tmp'%" $(DST_DIR)/settings.py
sed -i "s%os.path.abspath(os.path.join(PROJECT_PATH, 'log'))%'/var/log'%" $(DST_DIR)/settings.py
sed -i "s%os.path.abspath(os.path.join(PROJECT_PATH, 'media'))%'/data/output'%" $(DST_DIR)/settings.py
sed -i "s%REPO = ('ccrisan', 'motioneye')%REPO = ('ccrisan', 'motionPie')%" $(DST_DIR)/settings.py
#sed -i "s%LOG_LEVEL = logging.INFO%LOG_LEVEL = logging.DEBUG%" $(DST_DIR)/settings.py
Expand Down

0 comments on commit 5d00272

Please sign in to comment.