version 1.452, 2015/07/18 21:12:40 |
version 1.453, 2015/07/19 04:44:36 |
|
|
{ |
{ |
while read _line ; do |
while read _line ; do |
_line=${_line%%#*} # strip comments |
_line=${_line%%#*} # strip comments |
test -z "$_line" && continue |
[ -z "$_line" ] && continue |
echo $_line |
echo $_line |
done |
done |
} <$_file |
} <$_file |
|
|
|
|
# Apply sysctl(8) settings. |
# Apply sysctl(8) settings. |
sysctl_conf() { |
sysctl_conf() { |
test -s /etc/sysctl.conf || return |
[ -s /etc/sysctl.conf ] || return |
|
|
# delete comments and blank lines |
# delete comments and blank lines |
set -- `stripcom /etc/sysctl.conf` |
set -- `stripcom /etc/sysctl.conf` |
|
|
|
|
# Apply mixerctl(1) settings. |
# Apply mixerctl(1) settings. |
mixerctl_conf() { |
mixerctl_conf() { |
test -s /etc/mixerctl.conf || return |
[ -s /etc/mixerctl.conf ] || return |
|
|
# delete comments and blank lines |
# delete comments and blank lines |
set -- `stripcom /etc/mixerctl.conf` |
set -- `stripcom /etc/mixerctl.conf` |
|
|
wsconsctl_conf() { |
wsconsctl_conf() { |
local save_IFS="$IFS" |
local save_IFS="$IFS" |
|
|
test -x /sbin/wsconsctl -a -s /etc/wsconsctl.conf || return |
[ -x /sbin/wsconsctl -a -s /etc/wsconsctl.conf ] || return |
# delete comments and blank lines |
# delete comments and blank lines |
IFS=" |
IFS=" |
" |
" |