updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / firefox-form-widgets / fix-form-widgets
blobf5394aa28867df41910f6b3df4a2f78e01dc7a16
1 #!/bin/sh
2 # This is a simple script to restore the custom widgets, if firefox was updated.
4 cd /opt/mozilla/lib/firefox/res
6 case $1 in
7 install)
8 if [ "`grep "ahM3cie1Ch" forms.css`" == "" ]; then
9 cp forms.css forms.css.bak
10 cat forms.css.bak forms-extra.css > forms.css
11 echo "/* ahM3cie1Ch */" >> forms.css
12 else
13 echo "It seems that the custom widgets are already installed."
16 reset)
17 cp forms.css.bak forms.css
20 echo "Usage:"
21 echo "install - installs the widgets"
22 echo "remove - removes the widgets"
24 esac