diff options
author | Ross Burton <ross@openedhand.com> | 2007-01-19 20:55:09 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2007-01-19 20:55:09 +0000 |
commit | 776490a40df8d1b4a84a07dd3e13bd10cd4c8bdd (patch) | |
tree | 489df56bf4725a99dc095a17cdfe7ef4c680ac82 /meta-extras/packages/dhcdbd/files/dhcdbd | |
parent | 6564355fb79604e818722ae3f6acf3dbb0665fca (diff) | |
download | poky-776490a40df8d1b4a84a07dd3e13bd10cd4c8bdd.tar.gz |
Add dhcp3 and dhcdbd for Network Manager
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1175 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta-extras/packages/dhcdbd/files/dhcdbd')
-rw-r--r-- | meta-extras/packages/dhcdbd/files/dhcdbd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-extras/packages/dhcdbd/files/dhcdbd b/meta-extras/packages/dhcdbd/files/dhcdbd new file mode 100644 index 0000000000..568753c28c --- /dev/null +++ b/meta-extras/packages/dhcdbd/files/dhcdbd | |||
@@ -0,0 +1,28 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # DHCDBD startup script | ||
4 | |||
5 | . /etc/profile | ||
6 | |||
7 | case $1 in | ||
8 | 'start') | ||
9 | echo -n "Starting dhcdbd daemon: dhcdbd" | ||
10 | /sbin/dhcdbd --system | ||
11 | echo "." | ||
12 | ;; | ||
13 | |||
14 | 'stop') | ||
15 | echo -n "Stopping dhcdbd: dhcdbd" | ||
16 | killall `ps |grep /sbin/dhcdbd | grep -v grep | cut "-d " -f2` | ||
17 | echo "." | ||
18 | ;; | ||
19 | |||
20 | 'restart') | ||
21 | $0 stop | ||
22 | $0 start | ||
23 | ;; | ||
24 | |||
25 | *) | ||
26 | echo "Usage: $0 { start | stop | restart }" | ||
27 | ;; | ||
28 | esac | ||