--- mage/branches/alx-0_6_0/profiles/alx-060/forced-uninstall 2011/05/12 18:51:46 2112 +++ mage/branches/alx-0_6_0/profiles/alx-060/forced-uninstall 2011/05/12 20:43:28 2117 @@ -135,13 +135,6 @@ mage uninstall ${i} done -if [[ -f /.orphaned ]] -then - echo "Searching for orphaned files and directories ..." - bash /etc/mage-profile/prune-orphaned-files - rm -f /.orphaned -fi - if [[ -f /.dist-upgrade ]] then # array of wireless opts @@ -172,6 +165,19 @@ done rm -f ${i}.orig done + # search modules files + for i in $(find /etc/modules.d -name net.\*) + do + install -d /etc/modprobe.d + mv ${i} /etc/modprobe.d/${i%.conf}.conf + done +fi + +if [[ -f /.orphaned ]] +then + echo "Searching for orphaned files and directories ..." + bash /etc/mage-profile/prune-orphaned-files + rm -f /.orphaned fi if [[ -f /.dist-upgrade ]]