Guest User

Untitled

a guest
Sep 1st, 2013
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. File.open("/etc/sysconfig/network-scripts/ifcfg-eth0") do |f|
  2. f.each_line do |line|
  3. if line == "ONBOOT=no"
  4. puts "Found root: #{line}"
  5. end
  6. end
  7. end
  8.  
  9. ## /etc/sysconfig/network-scripts/ifcfg-eth0
  10. DNS1=1.1.1.1
  11. DNS2=1.1.1.1
  12. ONBOOT=no
  13. NM_CONTROLLED=no
  14. PEERDNS=no
Advertisement
Add Comment
Please, Sign In to add comment