#/usr/bin/env python3

import os

def postInstall(fromVersion, fromRelease, toVersion, toRelease):
    if os.path.exists("/usr/sbin/iconvconfig"):
        # Generate fastloading iconv module configuration file.
        os.popen("/usr/sbin/iconvconfig --prefix=/")

    # Reload init ...
    os.popen("/sbin/init U &> /dev/null")
    
def postRemove():
    pass

def preRemove():
    pass
