blob: 65401d697850b4c6d0c1d19c93aaba71c1c256d8 [file] [log] [blame]
#!/bin/sh
case "$1" in
slot-post-install)
case "$RAUC_SLOT_CLASS" in
cfg)
if [[ -d /cfg/etc ]]; then
cp -a /cfg/etc ${RAUC_SLOT_MOUNT_POINT}/
fi
;;
*)
echo "Internal error: hook mismatched"
exit 11
esac
;;
*)
echo "Internal error: unrecognized hook"
exit 11
;;
esac
exit 0