fs/ubifs: work around fakeroot / sed -i issue on systems with SELinux enabled
[buildroot-gz.git] / package / pseudo / pseudo-wrapper
blob9c8dbdbfab7b4bdda6bff11a6a1daa1d44abad9f
1 #!/bin/sh
3 if [ "${0##*/}" = "fakeroot" ]; then
4 cat >&2 <<-_EOF_
5 WARNING: fakeroot has been replaced with pseudo.
6 WARNING: Update your script(s) to use pseudo or pseudo-wrapper instead.
7 _EOF_
8 fi
10 export PSEUDO_PREFIX="$(dirname "${0%/*}")"
11 export PSEUDO_OPTS="-t0"
12 if [ -n "${TARGET_DIR}" ]; then
13 export PSEUDO_PASSWD="${TARGET_DIR}"
15 if [ -n "${BASE_DIR}" ]; then
16 export PSEUDO_LOCALSTATEDIR="${BASE_DIR}/build/.pseudodb"
19 exec "${0%/*}/pseudo" "${@}"