Advertisement
Guest User

hawk

a guest
May 17th, 2011
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. diff -ur orig/etc/inc/system.inc new/etc/inc/system.inc
  2. --- orig/etc/inc/system.inc 2011-05-17 14:24:08.000000000 +0200
  3. +++ new/etc/inc/system.inc 2011-05-17 14:23:00.000000000 +0200
  4. @@ -1341,6 +1341,7 @@
  5. }
  6.  
  7. function system_reboot_cleanup() {
  8. + mwexec("/etc/rc.stop_packages");
  9. mwexec("/usr/local/bin/beep.sh stop");
  10. require_once("captiveportal.inc");
  11. captiveportal_radius_stop_all();
  12. diff -ur orig/etc/rc.newwanip new/etc/rc.newwanip
  13. --- orig/etc/rc.newwanip 2011-05-17 14:23:53.000000000 +0200
  14. +++ new/etc/rc.newwanip 2011-05-17 13:00:22.000000000 +0200
  15. @@ -51,7 +51,8 @@
  16. /* restart packages */
  17. system_ntp_configure();
  18. log_error("{$g['product_name']} package system has detected an ip change $oldip -> $curwanip ... Restarting packages.");
  19. - mwexec_bg("/etc/rc.start_packages");
  20. + mwexec("/etc/rc.stop_packages");
  21. + mwexec("/etc/rc.start_packages");
  22. }
  23.  
  24. /* Interface IP address has changed */
  25. diff -ur orig/etc/rc.start_packages new/etc/rc.start_packages
  26. --- orig/etc/rc.start_packages 2011-05-17 14:24:01.000000000 +0200
  27. +++ new/etc/rc.start_packages 2011-05-17 12:25:01.000000000 +0200
  28. @@ -10,7 +10,7 @@
  29. echo "Executing rc.d items... "
  30. for FILE in /usr/local/etc/rc.d/*.sh; do
  31. echo -n " Starting ${FILE}..."
  32. - sh $FILE start >>/tmp/bootup_messages 2>&1 &
  33. + sh $FILE start >>/tmp/bootup_messages 2>&1
  34. echo "done."
  35. done
  36. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement