updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wicd-bzr / wicd.install
blob4e1bbaaa39148631cda2bba4bdd11a825c8b989a
1 pre_install() {
2   echo
3   echo "==> Disable networkmanager,dhcdbd or other networking"
4   echo "==> utility and add 'wicd' to DAEMONS"
5   echo "==> in /etc/rc.conf"
6   echo "==> 'dbus' HAS to be before 'wicd' in rc.conf in the "
7   echo "==> DAEMONS array"
10 pre_upgrade() {
11   [ -f /var/run/daemons/wicd ] && cp /var/run/daemons/wicd /var/run/daemons/wicd.pid && /etc/rc.d/wicd stop
12   pre_install $*
15 post_install() {
16   xdg-icon-resource forceupdate
17   echo
18   echo "Wireless Interface Connection Daemon"
19   echo
20   echo "==> To run: wicd-client"
21   sleep 1
25 post_upgrade() {
26   [ -f /var/run/daemons/wicd.pid ] && rm /var/run/daemons/wicd.pid && /etc/rc.d/wicd start
27   post_install $*
30 op=$1
31 shift
32 $op $*