#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## wpa_supplicant-2.10: target install ##########"
cd /home/ych/rk3568/buildroot
touch /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/.stamp_installed
if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/.files-list-target.txt ]; then cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/target; cat /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/.files-list-target.txt | xargs md5sum /dev/null > /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/.md5 2>/dev/null || true; cd -; fi
cd /home/ych/rk3568/buildroot
/usr/bin/install -m 0755 -D /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant/wpa_supplicant /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/usr/sbin/wpa_supplicant
/usr/bin/install -m 644 -D package/wpa_supplicant/wpa_supplicant.conf /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/wpa_supplicant.conf
/usr/bin/install -m 0755 -D /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant/wpa_cli /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/usr/sbin/wpa_cli
/usr/bin/install -m 0755 -D /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant/wpa_passphrase /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/usr/sbin/wpa_passphrase
/usr/bin/install -m 0644 -D /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant/dbus/dbus-wpa_supplicant.conf /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/dbus-1/system.d/wpa_supplicant.conf
/usr/bin/install -m 0644 -D /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.so /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/usr/lib/libwpa_client.so
/usr/bin/install -m 0644 -D /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/src/common/wpa_ctrl.h /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/usr/include/wpa_ctrl.h
/usr/bin/install -m 0755 -D package/wpa_supplicant/ifupdown.sh /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/network/if-up.d/wpasupplicant
mkdir -p /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/network/if-down.d
ln -sf ../if-up.d/wpasupplicant /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/network/if-down.d/wpasupplicant
sed -i '/ctrl_interface/s/^#//g' /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/wpa_supplicant.conf
cd /home/ych/rk3568/buildroot
cd /home/ych/rk3568/buildroot
rm -f -rf  /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/share/info/dir
cd /home/ych/rk3568/buildroot
if test -n "" ; then rm -f -f  ; fi
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/target; find . \( -type f -o -type l \) -cnewer /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/.stamp_installed | tee /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/.files-list-target.txt | /home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/tar --no-recursion --ignore-failed-read -cf /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant-2.10.tar -T -; true;
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/target; if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/.md5 ]; then md5sum -c /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/.md5 2>&1 | grep "FAILED$" | cut -d':' -f1 > /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/.files-list-target-update.txt; fi
