projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e25426
)
backports: fix install script return code
author
Johannes Berg
<johannes.berg@intel.com>
Wed, 17 Apr 2013 14:04:42 +0000
(16:04 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 17 Apr 2013 14:04:42 +0000
(16:04 +0200)
My "test ... && ..." trick won't work with set -e since
then the script will fail, use a proper if.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/scripts/compress_modules.sh
patch
|
blob
|
history
diff --git
a/backport/scripts/compress_modules.sh
b/backport/scripts/compress_modules.sh
index 31cd1d46dad1f25a8cd5771b9bdcfebebc41ec56..bbf264f4e677197856e2a4047c522525318ab9aa 100755
(executable)
--- a/
backport/scripts/compress_modules.sh
+++ b/
backport/scripts/compress_modules.sh
@@
-14,7
+14,8
@@
function mod_filename()
echo $(basename "$mod_path")
}
-test "$(mod_filename mac80211)" = "mac80211.ko.gz" &&
+if test "$(mod_filename mac80211)" = "mac80211.ko.gz" ; then
for driver in $(find "$1" -type f -name *.ko); do
gzip -9 $driver
done
+fi