summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-05-04 09:29:25 +0200
committerAaron Griffin <aaron@archlinux.org>2006-05-04 09:29:25 +0200
commit35308163932b39fbeb147b09b5e807009392c46a (patch)
tree213ec1b8be0cd25e7da14880b4f3ea6584cb4fdf /functions
parentf5b35a26476faadaf518d4fbeef8187436e18980 (diff)
downloadmkinitcpio-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--functions8
1 files changed, 3 insertions, 5 deletions
diff --git a/functions b/functions
index 8396999..e8e7868 100644
--- a/functions
+++ b/functions
@@ -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"