~jtaylor/ubuntu/lucid/wicd/CVE-2012-2095

« back to all changes in this revision

Viewing changes to in/init=gentoo=wicd.in

  • Committer: Bazaar Package Importer
  • Author(s): David Paleino
  • Date: 2008-09-14 11:43:47 UTC
  • Revision ID: james.westby@ubuntu.com-20080914114347-xsi35lw2bf4ero07
Tags: upstream-1.5.2
ImportĀ upstreamĀ versionĀ 1.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/sbin/runscript
 
2
# Copyright 1999-2006 Gentoo Foundation
 
3
# Distributed under the terms of the GNU General Public License v2
 
4
 
 
5
opts="start stop restart"
 
6
 
 
7
WICD_DAEMON=%SBIN%wicd
 
8
WICD_PIDFILE=%PIDFILE%
 
9
 
 
10
depend() {
 
11
        need dbus
 
12
}
 
13
 
 
14
start() {
 
15
        ebegin "Starting wicd daemon"
 
16
        $WICD_DAEMON &>/dev/null
 
17
        eend $?
 
18
}
 
19
 
 
20
stop() {
 
21
        ebegin "Stopping wicd daemon"
 
22
        start-stop-daemon --stop --pidfile "$WICD_PIDFILE"
 
23
        eend $?
 
24
}