1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh pre_upgrade() { if [ -f /etc/bieaz.cfg ]; then epoch=$(date +%s) mv /etc/bieaz.cfg /etc/bieaz.cfg.${epoch}.old echo "moved old config file to /etc/bieaz.cfg.${epoch}.old" fi }; post_upgrade() { bieaz menu -g } post_install() { bieaz menu -g }