blob: 5b14883791b8288cf161eaaa4ad222912c3f39b9 [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)
Jan Kundrát6b05a1d2019-03-06 17:01:28 +01007 for DIR in etc random-seed ssh-user-auth; do
Jan Kundrát2af054a2018-06-06 13:45:04 +02008 if [[ -d /cfg/$DIR ]]; then
9 cp -a /cfg/$DIR ${RAUC_SLOT_MOUNT_POINT}/
10 fi
11 done
Jan Kundrát1cfb1982017-10-30 18:05:47 +010012 ;;
13 *)
14 echo "Internal error: hook mismatched"
15 exit 11
16 esac
17 ;;
18 *)
19 echo "Internal error: unrecognized hook"
20 exit 11
21 ;;
22esac
23
24exit 0