diff options
| author | Roy Marples <roy@marples.name> | 2016-03-12 10:52:41 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-03-12 10:52:41 +0000 |
| commit | c2d0c13e72ea9ca20ad09ba03ec7cc4710369aad (patch) | |
| tree | ed45f558f2a9d6a4393af1e8aba0e5d99bc1d1c6 /configure | |
| parent | 0af58eb2887a25a58062a88fd481ae45c6409994 (diff) | |
| download | dhcpcd-c2d0c13e72ea9ca20ad09ba03ec7cc4710369aad.tar.xz | |
Support buggy FreeBSD rc system out of the box.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -24,6 +24,7 @@ STATIC= DEVS= EMBEDDED= POLL= +STATUSARG= for x do opt=${x%%=*} @@ -78,6 +79,7 @@ for x do --serviceexists) SERVICEEXISTS=$var;; --servicecmd) SERVICECMD=$var;; --servicestatus) SERVICESTATUS=$var;; + --statusarg) STATUSARG=$var;; --infodir|--includedir) ;; # ignore autotools --disable-maintainer-mode|--disable-dependency-tracking) ;; --disable-silent-rules) ;; @@ -1252,6 +1254,12 @@ SERVICESTATUS=$(echo "$SERVICESTATUS" | $SED \ -e 's:\$:\\\\\$\$:g' \ ) echo "SERVICESTATUS= $SERVICESTATUS" >>config.mk +if [ -z "$STATUSARG" ]; then + case "$OS" in + freebsd*) STATUSARG="onestatus";; + esac +fi +echo "STATUSARG= $STATUSARG" >>config.mk HOOKS= if ! $HOOKSET; then @@ -1357,6 +1365,7 @@ echo " MANDIR = $MANDIR" echo " DATADIR = $DATADIR" echo " HOOKSCRIPTS = $HOOKS" echo " EGHOOKSCRIPTS = $EGHOOKS" +echo " STATUSARG = $STATUSARG" echo rm -f dhcpcd tests/test |
