summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-05-17 19:21:25 +0200
committerChristian Poessinger <christian@poessinger.com>2018-05-17 19:21:25 +0200
commit540269c58ea647a4695a78b79714f61a2d1b80db (patch)
tree41457c40204e974cb7ae733abe1363a25e2235f9 /scripts
parentae343b4687046bb257490d4445c4a9a8f35dff3b (diff)
downloadvyatta-cfg-system-540269c58ea647a4695a78b79714f61a2d1b80db.tar.gz
vyatta-cfg-system-540269c58ea647a4695a78b79714f61a2d1b80db.zip
T648: fix custom sysctl setting because of output redirection
Diffstat (limited to 'scripts')
-rw-r--r--scripts/system/vyatta_update_sysctl.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/system/vyatta_update_sysctl.pl b/scripts/system/vyatta_update_sysctl.pl
index ddf10115..6e33c5d0 100644
--- a/scripts/system/vyatta_update_sysctl.pl
+++ b/scripts/system/vyatta_update_sysctl.pl
@@ -62,7 +62,7 @@ sub set_sysctl_value {
my $ovalue = get_sysctl_value($sysctl_opt);
if ($nvalue ne $ovalue) {
- my $cmd = "$SYSCTL -w $sysctl_opt=$nvalue 2>&1 1>&-";
+ my $cmd = "$SYSCTL -w $sysctl_opt=$nvalue 2>&1> /dev/null";
system($cmd);
if ($? >> 8) {
die "exec of $SYSCTL failed: '$cmd'";