Guia do Desenvolvedor de Empacotamento de Aplicativos

O script de remoção preremove

No estudo de caso deste exemplo de driver, ele remove os links em /dev e executa o comando rem_drv no driver.

# Pre removal script for the sst driver
echo “Removing /dev entries”
/usr/bin/rm -f /dev/rsst*

echo “Deinstalling driver from the kernel”
SAVEBASE=$BASEDIR
BASEDIR=””; export BASEDIR
/usr/sbin/rem_drv sst
BASEDIR=$SAVEBASE; export BASEDIR

exit 

O script remove as entradas /dev. As entradas /devices são removidas pelo comando rem_drv.