%post
/sbin/chkconfig --add meego-ux-mediafs
if ! cat /etc/fuse.conf | grep -qw user_allow_other; then
        echo "user_allow_other">>  /etc/fuse.conf
fi

this I'm not so sure about...
you add something, but never remove it
%preun
if [ -f /etc/init.d/meego-ux-mediafs ]; then
        /sbin/service meego-ux-mediafs stop>  /dev/null 2>&1 || :
        /sbin/service meego-ux-mediafs restore>  /dev/null 2>&1 || :
fi
/sbin/chkconfig --del meego-ux-mediafs

I think this way will completely break software update

%preun
if [ $1 -eq 0 ] ; then
    /sbin/service<script>  stop>/dev/null 2>&1
    /sbin/chkconfig --del<script>
fi


is the canonical way of doing this.

%preun gets called during package update as well.


_______________________________________________
MeeGo-packaging mailing list
[email protected]
http://lists.meego.com/listinfo/meego-packaging

Reply via email to