]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/wpa-supplicant/wpasupplicant-0.5.5/scripts-no-quiet.patch
wpasupplicant: add fully featured version based on 0.5.5-2 from Debian.
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / wpa-supplicant / wpasupplicant-0.5.5 / scripts-no-quiet.patch
1 diff -ur wpa_supplicant-0.5.5.debian/debian/ifupdown.sh wpa_supplicant-0.5.5/debian/ifupdown.sh
2 --- wpa_supplicant-0.5.5.debian/debian/ifupdown.sh      2006-10-20 21:22:56.000000000 +0200
3 +++ wpa_supplicant-0.5.5/debian/ifupdown.sh     2006-10-20 21:23:35.000000000 +0200
4 @@ -62,13 +62,13 @@
5  
6  # master function; determines if ifupdown.sh should do something or not
7  if [ -s "$IF_WPA_CONF" ]; then
8 -       WPA_SUP_CONF_CTRL_DIR=$(sed --quiet \
9 +       WPA_SUP_CONF_CTRL_DIR=$(sed \
10                 's/[[:space:]]*#.*//g;s/[[:space:]]\+.*$//g;s/^\(ctrl_interface\|DIR\)=\(.*\)/\2/p' "$IF_WPA_CONF")
11         if [ -n "$WPA_SUP_CONF_CTRL_DIR" ]; then
12                 WPA_CTRL_DIR="$WPA_SUP_CONF_CTRL_DIR"
13         fi
14         WPA_SUP_CONF="-c $IF_WPA_CONF -C $WPA_CTRL_DIR"
15 -elif set | grep --quiet "^IF_WPA"; then
16 +elif set | grep -q "^IF_WPA"; then
17         WPA_SUP_CONF="-C $WPA_CTRL_DIR"
18  else
19         exit 0