| The Following User Says Thank You to Saturn For This Useful Post: | ||
|
|
08-26-2012
, 10:58 PM
|
|
|
Posts: 308 |
Thanked: 252 times |
Joined on Jan 2012
@ Argentina
|
#102
|

|
|
08-27-2012
, 07:39 PM
|
|
|
Posts: 308 |
Thanked: 252 times |
Joined on Jan 2012
@ Argentina
|
#104
|
your prerm file can contain the commands for replacing back the original files...
|
|
08-28-2012
, 10:52 AM
|
|
|
Posts: 308 |
Thanked: 252 times |
Joined on Jan 2012
@ Argentina
|
#105
|
#!/bin/bash mv /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css.bkp rm /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css exit 0
|
|
08-28-2012
, 07:04 PM
|
|
|
Posts: 4,283 |
Thanked: 2,342 times |
Joined on Jan 2010
@ Australia Mate
|
#106
|
#!/bin/bash mv -f /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css.bkp rm -rf /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css exit 0
| The Following User Says Thank You to F2thaK For This Useful Post: | ||
|
|
08-29-2012
, 07:17 PM
|
|
|
Posts: 1,565 |
Thanked: 1,873 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#107
|
|
|
08-29-2012
, 07:55 PM
|
|
|
Posts: 308 |
Thanked: 252 times |
Joined on Jan 2012
@ Argentina
|
#108
|
|
|
08-30-2012
, 03:33 PM
|
|
|
Posts: 946 |
Thanked: 1,104 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#109
|
|
|
09-01-2012
, 05:10 PM
|
|
|
Posts: 308 |
Thanked: 252 times |
Joined on Jan 2012
@ Argentina
|
#110
|
For sure use sh instead of bash.
And I assume, that 'exit 0' will exit the installation, not only this script. Just remove that.
And there should be no need for a blank line at the end, but it does not hurt also.
![]() |
| Thread Tools | Search this Thread |
|
here is an advanced example of something I'm using (it will execute different options depending on what the user asked, i.e. upgrade, remove or purge):
#!/bin/sh echo "BEGIN postremove" case "$1" in upgrade*) echo Leaving files for use by upgrading version. 1>&2 ;; remove*) rm -f /etc/sudoers.d/cleven.sudoers update-sudoers ;; purge*) rm -rf /opt/cleven rm -rf /home/user/.cleven update-sudoers ;; esac echo " END of postremove"Packages: elGR Locale, SMSCON Editor, Swappolube, CSSU Features Configuration, Snuggle, YAMAS, Cleven
Garage: SMSCON, Swappolube, CSSU Features Configuration, Snuggle
Wiki: SMSCON, SMSCON Editor, Swappolube, CSSU Features Configuration, Cleven