Commit 240d462e authored by Branko Mikić's avatar Branko Mikić
Browse files

minor bugs fixed!

~ printKernelParams() function revised to accept nic interface names as argument instead of config options from '/proc/sys/net/ipv4/*' only. When a nic is specified as an argument all available options will be shown.
parent 0d22199b
......@@ -123,6 +123,7 @@ printKernelParams()
[ -f "$sz/conf/default/$2" ] && sz="$sz/conf" && sy="*/$2"
[ -f "$sz/conf/$2" ] && sz="$sz/conf" && sy="$2"
[ -d "$sz/conf/$2" ] && sz="$sz/conf/$2" && sy="*" && printf "#\n# $2:\n"
[ -f "$sz/$2" ] && sy="$2"
[ -z "$sy" ] && error 27 "Kernel param: '$2' not found!"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment