blob: 65401d697850b4c6d0c1d19c93aaba71c1c256d8 [file] [log] [blame]
Jan Kundrát1cfb1982017-10-30 18:05:47 +01001#!/bin/sh
2
3case "$1" in
4 slot-post-install)
5 case "$RAUC_SLOT_CLASS" in
6 cfg)
7 if [[ -d /cfg/etc ]]; then
8 cp -a /cfg/etc ${RAUC_SLOT_MOUNT_POINT}/
9 fi
10 ;;
11 *)
12 echo "Internal error: hook mismatched"
13 exit 11
14 esac
15 ;;
16 *)
17 echo "Internal error: unrecognized hook"
18 exit 11
19 ;;
20esac
21
22exit 0