blob: 9850c386a1cea2123de133d7d7a59fb113b36f53 [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át2af054a2018-06-06 13:45:04 +02007 for DIR in etc ssh-user-auth; do
8 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