15 lines
328 B
Plaintext
15 lines
328 B
Plaintext
#!/bin/sh
|
|
case "${ACTION}" in
|
|
post)
|
|
# Migrate legacy INI to YAML
|
|
_zbmdir="etc/zfsbootmenu"
|
|
if [ -r "${_zbmdir}/config.ini" ]; then
|
|
generate-zbm --migrate "${_zbmdir}/config.ini" --config "${_zbmdir}/config.yaml" \
|
|
&& mv "${_zbmdir}/config.ini" "${_zbmdir}/config.ini.migrated"
|
|
fi
|
|
unset _zbmdir
|
|
|
|
generate-zbm
|
|
;;
|
|
esac
|