mirror of
https://github.com/gryf/wicd.git
synced 2026-01-03 20:34:17 +01:00
experimental:
- Add UPDATE_INTERVAL as a required attribute for backends, and used by monitor.py - Update Copyright stuff in a few files - Remove/update some scripts and configuration files.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Bring wifi network interface back up.
|
||||
/opt/wicd/suspend.py
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Bring wifi network interface back up.
|
||||
|
||||
/opt/wicd/autoconnect.py
|
||||
@@ -1,19 +1,26 @@
|
||||
#!/bin/sh
|
||||
#stop daemon!
|
||||
/etc/init.d/wicd stop
|
||||
|
||||
#remove because we changed stuff
|
||||
update-rc.d -f wicd remove
|
||||
# Stop daemon
|
||||
if [ -f /etc/init.d/wicd ]; then
|
||||
/etc/init.d/wicd stop
|
||||
fi
|
||||
|
||||
# Remove Wicd from the boot sequence
|
||||
if which update-rc.d &>/dev/null ; then
|
||||
update-rc.d -f wicd remove
|
||||
fi
|
||||
|
||||
#remove pyc files that screw things up sometimes
|
||||
#there shouldn't be any there, but it never hurts to check
|
||||
#they may exist if you are upgrading wicd
|
||||
rm -rf /opt/wicd/*.pyc
|
||||
# Remove pyc files
|
||||
# They may exist if you are upgrading Wicd
|
||||
rm -f /opt/wicd/*.pyc
|
||||
|
||||
#add us to the startup
|
||||
#add us to 80 because sometimes dbus starts
|
||||
#later then 20, so that causes problems
|
||||
update-rc.d wicd start 80 2 3 4 5 . stop 20 0 1 6 .
|
||||
# Add Wicd to the startup sequence
|
||||
# 80 to make sure that dbus is running when Wicd starts
|
||||
if which update-rc.d &>/dev/null ; then
|
||||
update-rc.d wicd start 80 2 3 4 5 . stop 20 0 1 6 .
|
||||
fi
|
||||
|
||||
#start the daemon
|
||||
/etc/init.d/wicd start
|
||||
# Start the daemon
|
||||
if [ -f /etc/init.d/wicd ]; then
|
||||
/etc/init.d/wicd start
|
||||
fi
|
||||
|
||||
@@ -6,14 +6,32 @@
|
||||
<allow own="org.wicd.daemon"/>
|
||||
<allow send_destination="org.wicd.daemon"/>
|
||||
<allow send_interface="org.wicd.daemon"/>
|
||||
<allow send_destination="org.wicd.daemon.wireless"/>
|
||||
<allow send_interface="org.wicd.daemon.wireless"/>
|
||||
<allow send_destination="org.wicd.daemon.wired"/>
|
||||
<allow send_interface="org.wicd.daemon.wired"/>
|
||||
<allow send_destination="org.wicd.daemon.config"/>
|
||||
<allow send_interface="org.wicd.daemon.config"/>
|
||||
</policy>
|
||||
<policy at_console="true">
|
||||
<allow send_destination="org.wicd.daemon"/>
|
||||
<allow send_interface="org.wicd.daemon"/>
|
||||
<allow send_destination="org.wicd.daemon.wireless"/>
|
||||
<allow send_interface="org.wicd.daemon.wireless"/>
|
||||
<allow send_destination="org.wicd.daemon.wired"/>
|
||||
<allow send_interface="org.wicd.daemon.wired"/>
|
||||
<allow send_destination="org.wicd.daemon.config"/>
|
||||
<allow send_interface="org.wicd.daemon.config"/>
|
||||
</policy>
|
||||
<policy context="default">
|
||||
<allow own="org.wicd.daemon"/>
|
||||
<allow send_destination="org.wicd.daemon"/>
|
||||
<allow send_interface="org.wicd.daemon"/>
|
||||
<deny own="org.wicd.daemon"/>
|
||||
<deny send_destination="org.wicd.daemon"/>
|
||||
<deny send_interface="org.wicd.daemon"/>
|
||||
<deny send_destination="org.wicd.daemon.wireless"/>
|
||||
<deny send_interface="org.wicd.daemon.wireless"/>
|
||||
<deny send_destination="org.wicd.daemon.wired"/>
|
||||
<deny send_interface="org.wicd.daemon.wired"/>
|
||||
<deny send_destination="org.wicd.daemon.config"/>
|
||||
<deny send_interface="org.wicd.daemon.config"/>
|
||||
</policy>
|
||||
</busconfig>
|
||||
|
||||
Reference in New Issue
Block a user