Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -ur orig/etc/inc/system.inc new/etc/inc/system.inc
- --- orig/etc/inc/system.inc 2011-05-17 14:24:08.000000000 +0200
- +++ new/etc/inc/system.inc 2011-05-17 14:23:00.000000000 +0200
- @@ -1341,6 +1341,7 @@
- }
- function system_reboot_cleanup() {
- + mwexec("/etc/rc.stop_packages");
- mwexec("/usr/local/bin/beep.sh stop");
- require_once("captiveportal.inc");
- captiveportal_radius_stop_all();
- diff -ur orig/etc/rc.newwanip new/etc/rc.newwanip
- --- orig/etc/rc.newwanip 2011-05-17 14:23:53.000000000 +0200
- +++ new/etc/rc.newwanip 2011-05-17 13:00:22.000000000 +0200
- @@ -51,7 +51,8 @@
- /* restart packages */
- system_ntp_configure();
- log_error("{$g['product_name']} package system has detected an ip change $oldip -> $curwanip ... Restarting packages.");
- - mwexec_bg("/etc/rc.start_packages");
- + mwexec("/etc/rc.stop_packages");
- + mwexec("/etc/rc.start_packages");
- }
- /* Interface IP address has changed */
- diff -ur orig/etc/rc.start_packages new/etc/rc.start_packages
- --- orig/etc/rc.start_packages 2011-05-17 14:24:01.000000000 +0200
- +++ new/etc/rc.start_packages 2011-05-17 12:25:01.000000000 +0200
- @@ -10,7 +10,7 @@
- echo "Executing rc.d items... "
- for FILE in /usr/local/etc/rc.d/*.sh; do
- echo -n " Starting ${FILE}..."
- - sh $FILE start >>/tmp/bootup_messages 2>&1 &
- + sh $FILE start >>/tmp/bootup_messages 2>&1
- echo "done."
- done
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement