This commit is contained in:
2021-06-15 16:41:35 +01:00
parent 47c991b0b4
commit 14ee7379b0
24 changed files with 311 additions and 136 deletions

View File

@@ -1,4 +1,4 @@
EXTRA_DIST = dhsd dhsd.conf
EXTRA_DIST = dhsd-rh dhsd-deb dhsd.conf
sysconfdir = /etc
sysconf_DATA = dhsd.conf

View File

@@ -61,7 +61,7 @@ MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
VERSION = @VERSION@
EXTRA_DIST = dhsd dhsd.conf
EXTRA_DIST = dhsd-rh dhsd-deb dhsd.conf
sysconfdir = /etc
sysconf_DATA = dhsd.conf
@@ -75,7 +75,7 @@ DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
TAR = tar
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:

23
scripts/dhsd-deb Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
# Start/stop the dhsd daemon by Boxy.
test -f /usr/sbin/dhsd || exit 0
case "$1" in
start) echo -n "Starting dhsd ... "
start-stop-daemon --start --quiet --exec /usr/sbin/dhsd
echo "done"
;;
stop) echo -n "Stopping dhsd ... "
start-stop-daemon --stop --quiet --exec /usr/sbin/dhsd
echo "done"
;;
restart) echo -n "Re-starting dhsd ... "
start-stop-daemon --stop --quiet --exec /usr/sbin/dhsd
start-stop-daemon --start --quiet --exec /usr/sbin/dhsd
echo "done"
;;
*) echo "Usage: /etc/init.d/dhsd start|stop|restart"; exit 1
;;
esac
exit 0

View File

@@ -1,8 +1,9 @@
# DHSD configure script
# Please note that CASE MATTERS!
username=usernamehere
passwd=passwdhere
host=hosthere
domain=domainhere
device=ppp0
USER=usernamehere
PASS=passwdhere
DEV=ppp0
HOST=example1.2y.net
HOST=example2.2y.net