Permalink
Browse files

Small details, Linux functions

  • Loading branch information...
1 parent 8d5f425 commit 29467ac5f1762a64e8d7604eeeeaf30694ac8c18 @tomas tomas committed Jul 22, 2010
Showing with 4 additions and 5 deletions.
  1. +4 −5 platform/linux/functions
View
9 platform/linux/functions
@@ -1,8 +1,7 @@
#!/bin/bash
####################################################################
-# Prey Linux Specific Functions - by Tomas Pollak (bootlog.org)
-# URL : http://preyproject.com
-# License: GPLv3
+# Prey Linux Specific Functions - by Tomas Pollak
+# (c) 2010 Fork Ltd. (usefork.com) - Licensed under the GPLv3.
####################################################################
run_as_current_user(){
@@ -20,13 +19,13 @@ get_gateway_ip() {
}
get_wifi_device() {
- if [ ! -n "$wifi_device" ]; then
+ if [ -z "$wifi_device" ]; then
wifi_device=`cat /proc/net/wireless | tail -1 | grep -v "nwid" | sed -e 's/^\([^:].*\):.*/\1/' -e 's/ //g'`
fi
}
get_wifi_info() {
- if [ ! -n "$wifi_info" ]; then
+ if [ -z "$wifi_info" ]; then
wifi_info=`iwconfig 2>&1 | grep -v "no wireless"`
fi
}

0 comments on commit 29467ac

Please sign in to comment.