1 2 3 4 5 6 7 8
post_install() { if python /usr/share/slimbookbattery/src/check_config.py; then echo 'Configuration OK' fi post_upgrade() { post_install }