This can only been done with a pinstall.sh script . read the /usr/local/petget scripts how they are used [ /usr/local/petget/installpkg.sh ] . petget would run a pinstall.sh script after it had installed the pet . in this pinstall.sh script you can put something likepeebee wrote:Hi Mavrothalmavrothal wrote:peebee
the /usr/local/sbin/wpa_supplicant symlink in version 2 points to /usr/sbin/wpa_supplicant. However in Pecise the wpa_supplicant is in /sbin. Thus the pet fails. Correcting that works as advertised
Thanks for reporting that - strangely it works for me.
It maybe that I don't know how to include a symlink in a pet correctly - I wonder if there is a howto somewhere??
Cheers
peebee
Code: Select all
#!/bin/sh
if test -x /usr/sbin/wpa_supplicant ; then
ln -s /usr/sbin/wpa_supplicant /usr/local/sbin/wpa_supplicant
elif test -x /sbin/wpa_supplicant ; then
ln -s /sbin/wpa_supplicant /usr/local/sbin/wpa_supplicant
else xmessage -bg red "WARNING:wpa_supplicant bin or script not installed"
fi
There is also a possibility for a puninstall.sh .
Unfortunately a pre-install.sh possibility is missing .