Hello All
Another script with translation and i all so clean it repeated code
Remove
Code: Select all
if [ -e /etc/asound.conf ] && [ "$(cat /etc/asound.conf | grep "ctl.pulse")" == "" ] ; then
echo "pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.default pulse
ctl.default pulse
" > /etc/asound.conf
elif [ ! -e /etc/asound.conf ] ; then
echo "pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.default pulse
ctl.default pulse
" > /etc/asound.conf
fi
Replace
Code: Select all
f="/etc/asound.conf"
if [[ -e "${f}" && "$(cat ${f} | grep "ctl.pulse")" == "" || ! -e ${f} ]] ; then
echo "pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.default pulse
ctl.default pulse
" > /etc/asound.conf
fi
Puppy: LunarPup
Path: /etc/init.d