Changeset 716
- Timestamp:
- 06/01/06 15:41:15 (7 years ago)
- File:
-
- 1 edited
-
ccsd/private/modules/ccs_monitor_rurallink.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ccsd/private/modules/ccs_monitor_rurallink.py
r714 r716 733 733 # Restart DHCP and Reload Firewall 734 734 log_command("/etc/init.d/dhcp3-server restart 2>&1") 735 log_command("/etc/init.d/firewall start 2>&1")735 log_command("/etc/init.d/firewall start & 2>&1") 736 736 737 737 return True … … 782 782 # Restart DHCP and Reload Firewall 783 783 log_command("/etc/init.d/dhcp3-server restart 2>&1") 784 log_command("/etc/init.d/firewall start 2>&1")784 log_command("/etc/init.d/firewall start & 2>&1") 785 785 786 786 return True … … 844 844 # Restart DHCP and Reload Firewall 845 845 log_command("/etc/init.d/dhcp3-server restart 2>&1") 846 log_command("/etc/init.d/firewall start 2>&1")846 log_command("/etc/init.d/firewall start & 2>&1") 847 847 848 848 return True … … 2536 2536 # Reload interfaces to pick up any new configuration 2537 2537 log_command("/etc/init.d/networking restart 2>&1") 2538 2539 # Reload the firewall2540 log_command("/etc/init.d/firewall start 2>&1")2541 2542 # Check services are running2543 checkDHCPServer()2544 2545 # Initialise routes for the clients2546 initialiseClientRoutes()2547 2538 2548 2539 # Check if we know the master device to talk to … … 2561 2552 # Master node can get its own IP when it needs it... 2562 2553 rl_masterip = None 2554 2563 2555 # Retrieve the ISP we're connecting to 2564 2556 rl_isptype = pref_get("rurallink", "isptype", monitor_prefs, ISP_BCL) … … 2591 2583 rl_trafficusers = {} 2592 2584 return 2593 2585 2586 # Ensure that default traffic management policies are set in the 2587 # preferences file for the firewall to use 2588 ap0_policy = pref_get("traffic", "ap0_policy", monitor_prefs, None) 2589 int_policy = pref_get("traffic", "internal_policy", monitor_prefs, \ 2590 None) 2591 if ap0_policy is None: 2592 ap0_policy = DEFAULT_AP0_POLICY 2593 pref_set("traffic", "ap0_policy", ap0_policy, monitor_prefs) 2594 if int_policy is None: 2595 int_policy = DEFAULT_INTERNAL_POLICY 2596 pref_set("traffic", "internal_policy", int_policy, monitor_prefs) 2597 2594 2598 # Initialise the counters 2595 2599 for username,user in rl_trafficusers.items(): … … 2600 2604 httpd = AsyncHTTPServer(('', 81), CaptivePortalHandler) 2601 2605 log_info("Captive Portal Initialised. Traffic management in place.") 2602 2606 2607 # Reload the firewall 2608 log_command("/etc/init.d/firewall start & 2>&1") 2609 2603 2610 # Make sure DNS is correctly setup 2604 2611 updateDNS() 2612 2613 if rl_wizardrun: 2614 # Check services are running 2615 checkDHCPServer() 2616 2617 # Initialise routes for the clients 2618 initialiseClientRoutes() 2605 2619 2606 2620 @catchEvent("statusMapRequested") … … 3004 3018 3005 3019 # Reload the firewall 3006 log_command("/etc/init.d/firewall start 2>&1")3020 log_command("/etc/init.d/firewall start & 2>&1") 3007 3021 3008 3022 # Check services are running
Note: See TracChangeset
for help on using the changeset viewer.
