Working version
This commit is contained in:
10
install.sh
Executable file
10
install.sh
Executable 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
7
rc.d/dhcpleasemon
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
daemon="/usr/local/sbin/dhcpleasemon"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_cmd $1
|
||||
Reference in New Issue
Block a user