From 96874f8367394fa0565a0f83224c77064df4b87e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 28 Apr 2008 03:40:33 +0000 Subject: Escape \$2 --- etc/inc/openvpn.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 447a7c0..ff44195 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -49,7 +49,7 @@ require_once('util.inc'); function openvpn_delete($id) { global $g, $config; $ps = $g['varetc_path'] . "/openvpn_{$mode}{$id}.conf"; - $ps_id = `ps awux | grep $ps | awk '{ print $2 }'`; + $ps_id = `ps awux | grep $ps | awk '{ print \$2 }'`; killbypid($ps_id); } -- cgit v1.1