Jan Kundrát | 1cfb198 | 2017-10-30 18:05:47 +0100 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | case "$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 | ;; | ||||
20 | esac | ||||
21 | |||||
22 | exit 0 |