Alter the pccard setup a bit so that it looks prettier by redirecting
pccardc's stdout to /dev/null and outputting short messages on succesful completion instead much like other rc scripts. Reviewed by: imp
This commit is contained in:
parent
9a901d972d
commit
993fc0a103
@ -31,26 +31,26 @@
|
||||
|
||||
case ${pccard_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n 'Enable PC-card:'
|
||||
echo -n 'Setup PC-CARD:'
|
||||
|
||||
case ${pccard_mem} in
|
||||
[Dd][Ee][Ff][Aa][Uu][Ll][Tt])
|
||||
pccardc pccardmem 0xd0000
|
||||
pccardc pccardmem 0xd0000 1>/dev/null && echo -n ' memory'
|
||||
;;
|
||||
*)
|
||||
pccardc pccardmem ${pccard_mem}
|
||||
pccardc pccardmem ${pccard_mem} 1>/dev/null && echo -n ' memory'
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${pccard_beep}" ] ; then
|
||||
pccardc beep ${pccard_beep}
|
||||
pccardc beep ${pccard_beep} && echo -n ' beep'
|
||||
fi
|
||||
|
||||
if [ -n "${pccard_conf}" ]; then
|
||||
pccardd_flags="${pccardd_flags} -f ${pccard_conf}"
|
||||
fi
|
||||
|
||||
pccardd ${pccardd_flags} 2>&1 > /var/log/pccardd.debug
|
||||
pccardd ${pccardd_flags} && echo -n ' pccardd'
|
||||
echo '.'
|
||||
;;
|
||||
esac
|
||||
|
@ -31,26 +31,26 @@
|
||||
|
||||
case ${pccard_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n 'Enable PC-card:'
|
||||
echo -n 'Setup PC-CARD:'
|
||||
|
||||
case ${pccard_mem} in
|
||||
[Dd][Ee][Ff][Aa][Uu][Ll][Tt])
|
||||
pccardc pccardmem 0xd0000
|
||||
pccardc pccardmem 0xd0000 1>/dev/null && echo -n ' memory'
|
||||
;;
|
||||
*)
|
||||
pccardc pccardmem ${pccard_mem}
|
||||
pccardc pccardmem ${pccard_mem} 1>/dev/null && echo -n ' memory'
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${pccard_beep}" ] ; then
|
||||
pccardc beep ${pccard_beep}
|
||||
pccardc beep ${pccard_beep} && echo -n ' beep'
|
||||
fi
|
||||
|
||||
if [ -n "${pccard_conf}" ]; then
|
||||
pccardd_flags="${pccardd_flags} -f ${pccard_conf}"
|
||||
fi
|
||||
|
||||
pccardd ${pccardd_flags} 2>&1 > /var/log/pccardd.debug
|
||||
pccardd ${pccardd_flags} && echo -n ' pccardd'
|
||||
echo '.'
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user