Advertisement
Guest User

Untitled

a guest
Oct 20th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. @@ -34,7 +34,7 @@
  2. # Test for link on the interface prior to bringing it up. This
  3. # only works on some network adapters and requires the ethtool
  4. # package to be installed.
  5. - if ethtool ${IFACE} | grep -q 'Link detected: no'; then
  6. + if ethtool ${IFACE} {{!}} grep -q 'Link detected: no'; then
  7. ewarn "No link on ${IFACE}, aborting configuration"
  8. return 1
  9. fi
  10. @@ -111,8 +111,8 @@
  11. # being connected to then we run the CISCO LEAP script
  12.  
  13. local user pass
  14. - eval user=\"\$\{leap_user_${ESSIDVAR}\}\"
  15. - eval pass=\"\$\{leap_pass_${ESSIDVAR}\}\"
  16. + eval user{{=}}\"\$\{leap_user_${ESSIDVAR}\}\"
  17. + eval pass{{=}}\"\$\{leap_pass_${ESSIDVAR}\}\"
  18.  
  19. if [[ -n ${user} && -n ${pass} ]]; then
  20. if [[ ! -x /opt/cisco/bin/leapscript ]]; then
  21. @@ -120,7 +120,8 @@
  22. return 1
  23. fi
  24. einfo "Waiting for LEAP Authentication on \"${ESSID//\\\\//}\""
  25. - if /opt/cisco/bin/leapscript ${user} ${pass} | grep -q 'Login incorrect'; then
  26. + if /opt/cisco/bin/leapscript ${user} ${pass} {{!}} grep -q 'Login incorrect';
  27. +then
  28. ewarn "Login Failed for ${user}"
  29. return 1
  30. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement