Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ifdata [2015/08/04 12:08]
steve
ifdata [2015/08/04 12:12]
steve
Line 11: Line 11:
 </​code>​ </​code>​
  
 +Print yes or no if the interface exists.
 +
 +<​code>​
 +ifdata -pe eth0
 +</​code>​
 +
 +Return an exit code if device exists or not:
 +
 +<​code>​
 +ifdata -e eth0
 +</​code>​
 +
 +Print netmask:
 +
 +<​code>​
 +ifdata -pn eth0
 +</​code>​
 +
 +Print the broadcast address:
 +
 +<​code>​
 +ifdata -pb eth0
 +</​code>​