00ea0a2f46
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10342 3c298f89-4303-0410-b956-a3cf2f4a3e73
15 lines
269 B
Bash
15 lines
269 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
START=50
|
|
|
|
start() {
|
|
cp /etc/slp* /var
|
|
IP=`ifconfig br-lan | grep inet | cut -d" " -f12 | cut -d: -f2`
|
|
sed -i "s/IPADDR/${IP}/g" /var/slp.reg
|
|
slpd -r /var/slp.reg -c /var/slp.conf
|
|
}
|
|
|
|
stop() {
|
|
killall slpd
|
|
}
|