mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 12:28:08 +01:00
Fixed bug where building with setup.py wouldn't add rcX symlinks to init.d, so wicd wouldn't start at boot.
This commit is contained in:
19
other/postinst
Executable file
19
other/postinst
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
#stop daemon!
|
||||
/etc/init.d/wicd stop
|
||||
|
||||
#remove because we changed stuff
|
||||
update-rc.d -f wicd remove
|
||||
|
||||
#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
|
||||
|
||||
#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 .
|
||||
|
||||
#start the daemon
|
||||
/etc/init.d/wicd start
|
||||
Reference in New Issue
Block a user