diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-09-09 14:10:39 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-09-09 14:10:39 -0700 |
commit | d000689490bbc3508f18b878757b3d2bb04d8a69 (patch) | |
tree | 40388b9f23e75fc4c0884f7fb076f2d6382e1136 /hooks/klibc | |
parent | b9c92a3bb82e860c8368eb7933f5ec4ddcd74bcb (diff) | |
parent | 3963c563cf1ea4b1126a4c1949181029a0ff2305 (diff) | |
download | initramfs-tools-d000689490bbc3508f18b878757b3d2bb04d8a69.tar.gz initramfs-tools-d000689490bbc3508f18b878757b3d2bb04d8a69.zip |
Merge remote branch 'debian/master' into upstream
Diffstat (limited to 'hooks/klibc')
-rwxr-xr-x | hooks/klibc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/hooks/klibc b/hooks/klibc new file mode 100755 index 0000000..e41c631 --- /dev/null +++ b/hooks/klibc @@ -0,0 +1,24 @@ +#!/bin/sh + +PREREQ="" + +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +# get pre-requisites +prereqs) + prereqs + exit 0 + ;; +esac + +# klibc +ln -s /usr/lib/klibc/bin/* ${DESTDIR}/bin +ln -s /lib/klibc-*.so ${DESTDIR}/lib +rm -f ${DESTDIR}/bin/kinit* ${DESTDIR}/bin/zcat +if [ "${BUSYBOX}" = "n" ] || [ ! -e ${BUSYBOXDIR}/busybox ]; then + mv ${DESTDIR}/bin/sh.shared ${DESTDIR}/bin/sh +fi |