forked from Lainports/freebsd-ports
* fixes url encoding issue which mangled 'pkg+http. to .pkg http' * some comment typos fixed In the port itself: * patch /usr/local to %%PREFIX%% in upstream code * use %%PREFIX%% in periodic script * correct LICENSE_FILE
25 lines
359 B
Bash
25 lines
359 B
Bash
#!/bin/sh -
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
if [ -r /etc/defaults/periodic.conf ]; then
|
|
. /etc/defaults/periodic.conf
|
|
source_periodic_confs
|
|
fi
|
|
|
|
rc=0
|
|
|
|
case "${samdrucker_client_enable:-YES}" in
|
|
[Yy][Ee][Ss])
|
|
anticongestion
|
|
if ! %%PREFIX%%/bin/samdrucker.sh ; then
|
|
echo 'ouch, something went wrong with %%PREFIX%%/bin/samdrucker.sh'
|
|
rc=2
|
|
fi
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
exit $rc
|