Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -34,7 +34,7 @@
- # Test for link on the interface prior to bringing it up. This
- # only works on some network adapters and requires the ethtool
- # package to be installed.
- - if ethtool ${IFACE} | grep -q 'Link detected: no'; then
- + if ethtool ${IFACE} {{!}} grep -q 'Link detected: no'; then
- ewarn "No link on ${IFACE}, aborting configuration"
- return 1
- fi
- @@ -111,8 +111,8 @@
- # being connected to then we run the CISCO LEAP script
- local user pass
- - eval user=\"\$\{leap_user_${ESSIDVAR}\}\"
- - eval pass=\"\$\{leap_pass_${ESSIDVAR}\}\"
- + eval user{{=}}\"\$\{leap_user_${ESSIDVAR}\}\"
- + eval pass{{=}}\"\$\{leap_pass_${ESSIDVAR}\}\"
- if [[ -n ${user} && -n ${pass} ]]; then
- if [[ ! -x /opt/cisco/bin/leapscript ]]; then
- @@ -120,7 +120,8 @@
- return 1
- fi
- einfo "Waiting for LEAP Authentication on \"${ESSID//\\\\//}\""
- - if /opt/cisco/bin/leapscript ${user} ${pass} | grep -q 'Login incorrect'; then
- + if /opt/cisco/bin/leapscript ${user} ${pass} {{!}} grep -q 'Login incorrect';
- +then
- ewarn "Login Failed for ${user}"
- return 1
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement