ee595d2ae5
"echo -e" -> "printf" "exit -1" -> "exit 255" - some of the patches had hand-rolled chunks to replace /bin/bash with /bin/sh near a CVS keyword; remove these and replace with a pre-configure target making it easier to update-patches - change sample config to disable hardcoded escape sequences for colours by default - bump PKGNAME-main
22 lines
862 B
Plaintext
22 lines
862 B
Plaintext
$OpenBSD: patch-scripts_kamctl,v 1.2 2009/09/12 09:42:04 sthen Exp $
|
|
--- scripts/kamctl.orig Tue Jul 14 15:48:56 2009
|
|
+++ scripts/kamctl Sat Sep 12 09:04:33 2009
|
|
@@ -56,7 +56,7 @@ fi
|
|
if [ -f "$MYLIBDIR/kamctl.base" ]; then
|
|
. "$MYLIBDIR/kamctl.base"
|
|
else
|
|
- echo -e "Cannot load core functions '$MYLIBDIR/kamctl.base' - exiting ...\n"
|
|
+ printf "Cannot load core functions '$MYLIBDIR/kamctl.base' - exiting ...\n"
|
|
exit -1
|
|
fi
|
|
|
|
@@ -1795,7 +1795,7 @@ openser_stop() {
|
|
options_ping() {
|
|
myhost=`get_my_host`
|
|
require_ctlengine
|
|
- CMD="t_uac_dlg OPTIONS \"$1\" \".\" \".\" \"From:daemon@$myhost"$'\r\n'"To:<$1>"$'\r\n'"Contact:daemon@$myhost"$'\r\n'"\""
|
|
+ CMD="t_uac_dlg OPTIONS \"$1\" \".\" \".\" \"From:daemon@$myhost"$(printf '\r\n')"To:<$1>"$(printf '\r\n')"Contact:daemon@$myhost"$(printf '\r\n')"\""
|
|
RET=`$CTLCMD $CMD | head -1`
|
|
print_status $RET
|
|
}
|