I had some trouble running the remove command in a sub-shell, so I ended up with this doinst.sh which appears to workstep wrote: An installed package can be uninstalled from the command line with slapt --remove <packagename>, for instance slapt --remove yad-0.36.3-x86_64-1 removes yad.
Putting it all together, doinst.sh could beThis sample code is untested. If you find it useful, please let us know if it works for your case. Thank you.Code: Select all
<snip> ( sleep 2; slapt-get --uninstall $THIS_PACKAGE ) &
Code: Select all
if [ "$(uname -r)" != "4.4.35" ]; then
Xdialog --title "$(gettext 'Error')" --msgbox \
"$(gettext 'This package is only for the 4.4.35 kernel. Will now uninstall it')" 0 0
cat <<EOF>/tmp/removeFTpkg.sh
#!/bin/sh
sleep 10
slapt-get --remove -y facetimehd-0.1-x86_64-1
EOF
chmod 755 /tmp/removeFTpkg.sh
exec /tmp/removeFTpkg.sh &
exit 1
else
...
Unrelated but still... Does the fbxkb package from the repo works for anyone?