diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-05-17 19:21:25 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-05-17 19:21:25 +0200 |
commit | 540269c58ea647a4695a78b79714f61a2d1b80db (patch) | |
tree | 41457c40204e974cb7ae733abe1363a25e2235f9 /scripts | |
parent | ae343b4687046bb257490d4445c4a9a8f35dff3b (diff) | |
download | vyatta-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.pl | 2 |
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'"; |