resticprofiles-base/scripts/os_solus

32 lines
449 B
Text
Raw Normal View History

2023-12-03 02:09:46 -05:00
#!/bin/bash
restoreDir="/etc/restore"
hook_before() {
2023-12-03 02:09:46 -05:00
mkdir -p "$restoreDir" || exit 1
pushd "$restoreDir" || exit 2
eopkg li > Packages.list
popd || exit 2
}
hook_after() {
:
}
hook_fail() {
:
}
hook_final() {
2023-12-03 02:09:46 -05:00
:
}
case "$1" in
before) hook_before || exit $?;;
after) hook_after || exit $?;;
fail) hook_fail || exit $?;;
finally) hook_final || exit $?;;
2023-12-03 02:09:46 -05:00
esac