Working version

This commit is contained in:
2024-12-22 23:01:30 +00:00
parent b706f78a85
commit 89a9ead331
2 changed files with 17 additions and 0 deletions

10
install.sh Executable file
View File

@@ -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

7
rc.d/dhcpleasemon Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/ksh
daemon="/usr/local/sbin/dhcpleasemon"
. /etc/rc.d/rc.subr
rc_cmd $1