Changeset 31978


Ignore:
Timestamp:
2012-05-29T04:03:25+02:00 (6 years ago)
Author:
jow
Message:

[package] base-files: add network_is_up()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/functions/network.sh

    r31960 r31978  
    5555} 
    5656 
     57network_is_up() 
     58{ 
     59        local __up 
     60        __network_device __up "$1" up && [ $__up -eq 1 ] 
     61} 
     62 
    5763network_get_device()  { __network_device "$1" "$2" l3_device; } 
    5864network_get_physdev() { __network_device "$1" "$2" device;    } 
Note: See TracChangeset for help on using the changeset viewer.