diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..d49aa0e --- /dev/null +++ b/install.sh @@ -0,0 +1,10 @@ +#!/bin/ksh + +pname="dhcpleasemon" + +cargo build --release + +install -o root -g wheel -d /etc/$pname +install -o root -g bin target/release/$pname /usr/local/sbin/$pname +install -o root -g wheel -m 0555 rc.d/$pname /etc/rc.d/$pname + diff --git a/rc.d/dhcpleasemon b/rc.d/dhcpleasemon new file mode 100755 index 0000000..ec34efb --- /dev/null +++ b/rc.d/dhcpleasemon @@ -0,0 +1,7 @@ +#!/bin/ksh + +daemon="/usr/local/sbin/dhcpleasemon" + +. /etc/rc.d/rc.subr + +rc_cmd $1