Explorar el Código

Update to better handle "home"-ness

Samuel W. Flint hace 5 años
padre
commit
09ee408ad7
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      atHome

+ 8 - 1
atHome

@@ -1,3 +1,10 @@
 #!/bin/sh
 
-[ $(iwgetid --scheme) == "404WiFiNOTFound" ]
+if [ "${ATHOME}" == "1" ] ; then
+    exit 0
+elif which iwgetid ; then
+    [ x$(iwgetid --scheme) == x404WiFiNOTFound ]
+    exit $?
+else
+    exit 1
+fi