Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. # /etc/init/hold-interfaces.conf
  2.  
  3. start on starting network-interface and started mark-configured
  4.  
  5. instance holding${INTERFACE:+/}${INTERFACE:-}
  6.  
  7. task
  8.  
  9. exec :
  10.  
  11. start on network-rules-ready
  12.  
  13. task
  14.  
  15. exec :
  16.  
  17. # /etc/init/configure_interfaces.conf
  18.  
  19. start on local-filesystems
  20.  
  21. task
  22.  
  23. script
  24. find_and_mount_local_hard_disk # abbreviated
  25. install_stored_rules_and_other_network_configurations # abbreviated
  26.  
  27. udevadm control --reload-rules
  28.  
  29. # Stop all active network-interface upstart jobs (with data from old rules)
  30. stop_active_network_interface_jobs # abbreviated, using: initctl stop network-interface <interface>
  31.  
  32. # Allow next network-interface jobs
  33. # (with data from stored rules) to complete.
  34. initctl emit --no-wait network-rules-ready
  35.  
  36. # Trigger udev recognition.
  37. udevadm trigger --action='add' --subsystem-match='net'
  38. end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement