[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    [PATCH 5/5] backports: fix uninstall filename
From:       Hauke Mehrtens <hauke () hauke-m ! de>
Date:       2014-01-24 20:38:52
Message-ID: 1390595932-21877-6-git-send-email-hauke () hauke-m ! de
[Download RAW message or body]

The uninstall script calculated the filename in the wrong way. It added
the current working dir into the file name, this resulted in names like
this:
/lib/modules/2.6.32-431.3.1.el6.x86_64/updates//home/hauke/backports-20140124/drivers/net/wireless/ipw2x00/ipw2100.ko
 The correct one would be this
/lib/modules/2.6.32-431.3.1.el6.x86_64/updates/drivers/net/wireless/ipw2x00/ipw2100.ko


Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 backport/scripts/uninstall.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backport/scripts/uninstall.sh b/backport/scripts/uninstall.sh
index 99f74ab..1eb42b0 100755
--- a/backport/scripts/uninstall.sh
+++ b/backport/scripts/uninstall.sh
@@ -11,7 +11,7 @@ else
 fi
 
 for driver in $(find ${BACKPORT_PWD} -type f -name *.ko); do
-	mod_name=${KLIB}${KMODDIR}/${driver}${compr}
+	mod_name=${driver/${BACKPORT_PWD}/${KLIB}${KMODDIR}}${compr}
 	echo "  uninstall" $mod_name
 	rm -f $mod_name
 done
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic