22 lines
281 B
Text
22 lines
281 B
Text
|
#!/bin/bash
|
||
|
|
||
|
restoreDir="/etc/restore"
|
||
|
|
||
|
hook_pre() {
|
||
|
mkdir -p "$restoreDir" || exit 1
|
||
|
pushd "$restoreDir" || exit 2
|
||
|
|
||
|
eopkg li > Packages.list
|
||
|
|
||
|
popd || exit 2
|
||
|
}
|
||
|
|
||
|
hook_post() {
|
||
|
:
|
||
|
}
|
||
|
|
||
|
case "$1" in
|
||
|
before_backup) hook_pre;;
|
||
|
after_backup) hook_post;;
|
||
|
esac
|