diff options
author | ramon <ramongomez@us.es> | 2010-02-11 12:38:39 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2010-02-11 12:38:39 +0000 |
commit | e0f36349b08147ffe393b80b4178660ec5cc0059 (patch) | |
tree | e44a169ae87386a7474a22eed3d0c08b8b39627b /client/engine/System.lib | |
parent | 62e3bcf4d99ef3c3045a8b957e230a001718fda2 (diff) |
Solución ticket:99: integrar^Ca librería Net de la rama engine-1.0
git-svn-id: https://opengnsys.es/svn/trunk@752 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/System.lib')
-rwxr-xr-x | client/engine/System.lib | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/client/engine/System.lib b/client/engine/System.lib index 4c2b60a4..73bc3a00 100755 --- a/client/engine/System.lib +++ b/client/engine/System.lib @@ -44,35 +44,6 @@ fi } -##### PRUEBAS -# ogGetHostname -function ogGetHostname () -{ -local HOST -# Tomar nombre de la variable \c HOSTNAME -HOST="$HOSTNAME" -# Si no, tomar del DHCP, opción \c host-name -[ -z "$HOST" ] && HOST=$(awk -F\" '/option host-name/ {gsub(/;/,""); host=$2} - END {print host} - ' /var/lib/dhcp3/dhclient.leases) -# Si no, tomar del parámetro del kernel \c hostname -[ -z "$HOST" ] && HOST=$(awk 'BEGIN {RS=""; FS="="} - $1~/hostname/ {print $2}' /proc/cmdline) -[ "$HOSTNAME" != "$HOST" ] && export HOSTNAME="$HOST" -echo $HOST -} - -# ogGetIpAddress -function ogGetIpAddress () -{ -local IP -IP=$(awk '/fixed-address/ {gsub(/;/,""); host=$2} - END {print host} - ' /var/lib/dhcp3/dhclient.leases) -echo $IP; -} - - #/** # ogRaiseError int_errcode ["str_errmessage" ...] #@brief Devuelve el mensaje y el código de error correspondiente. |