diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-05-04 09:29:25 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-05-04 09:29:25 +0200 |
commit | 35308163932b39fbeb147b09b5e807009392c46a (patch) | |
tree | 213ec1b8be0cd25e7da14880b4f3ea6584cb4fdf /functions | |
parent | f5b35a26476faadaf518d4fbeef8187436e18980 (diff) | |
download | mkinitcpio-35308163932b39fbeb147b09b5e807009392c46a.tar.gz mkinitcpio-35308163932b39fbeb147b09b5e807009392c46a.tar.xz |
Changes to autodetection:
General performance improvement
Cleaned up excess modules
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@56 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -21,15 +21,13 @@ all_modules () checked_modules () { - ret=1 if [ -e "${MODULE_FILE}" ]; then for mod in $(all_modules ${@}); do if grep "$(basename ${mod%%\.ko})" "${MODULE_FILE}" >/dev/null 2>&1; then - ret=0 echo ${mod} fi done - return $ret + return 1 else all_modules ${@} fi @@ -77,7 +75,7 @@ add_symlink () add_dir $(dirname "${dest}") if ! grep "slink ${dest} " "${FILELIST}" 2>&1 > /dev/null; then msg " adding link ${fil} -> ${dest}" - echo "slink ${dest} ${fil} $(stat -c '%a %u %g' ${fil})" >> "${FILELIST}" + echo "slink ${dest} ${fil} $(stat -c '%a' ${fil}) 0 0" >> "${FILELIST}" fi fi #fail quietly @@ -103,7 +101,7 @@ add_file () if ! grep "file ${dest} " "${FILELIST}" 2>&1 > /dev/null; then msg " adding file ${dest}" - echo "file ${dest} ${fil} $(stat -c '%a %u %g' ${fil})" >> "${FILELIST}" + echo "file ${dest} ${fil} $(stat -c '%a' ${fil}) 0 0" >> "${FILELIST}" fi else err "file '${1}' does not exist" |