Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File.open("/etc/sysconfig/network-scripts/ifcfg-eth0") do |f|
- f.each_line do |line|
- if line == "ONBOOT=no"
- puts "Found root: #{line}"
- end
- end
- end
- ## /etc/sysconfig/network-scripts/ifcfg-eth0
- DNS1=1.1.1.1
- DNS2=1.1.1.1
- ONBOOT=no
- NM_CONTROLLED=no
- PEERDNS=no
Advertisement
Add Comment
Please, Sign In to add comment