]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/stripper
correct wrong headline at hardwaregraphs.cgi
[ipfire-2.x.git] / src / stripper
index 3601e74274c0bb7103752bff3031e3bb6a83384c..f121d35919fb967c6469c54b32d4f791ea631480 100755 (executable)
@@ -1,4 +1,4 @@
-#!/tools/bin/bash
+#!/usr/bin/env bash
 
 dirs=""
 excludes="/dev /proc /sys /run"
@@ -43,7 +43,7 @@ function _strip() {
 for dir in ${dirs}; do
        # Strip shared objects.
        find ${dir} -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
-               | file -N -f - | sed -n -e 's/^\(.*\):[   ]*.*ELF.*, not stripped/\1/p' |
+               | file -N -f - | sed -n -e 's/^\(.*\):[   ]*.*ELF.*, not stripped.*/\1/p' |
                while read file; do
                        _strip ${file} || exit $?
                done || exit $?