Package timidity-eaw-patches: Скрипты

Post install

1
2
3
4
if [ -f /etc/timidity.cfg ]; then
        grep -qs '^source eawpats.cfg$' /etc/timidity.cfg ||
        echo 'source eawpats.cfg' >> /etc/timidity.cfg
fi
Post uninstall

1
2
3
4
5
[ $1 = 0 ] || exit 0
if [ -f /etc/timidity.cfg ]; then
	sed '/source eawpats.cfg/d' < /etc/timidity.cfg > /etc/timidity.cfg.new
	mv /etc/timidity.cfg.new /etc/timidity.cfg
fi ||: