#!/bin/bash

#root level functions requiring password for quick-system-info-gui


readadminfile(){

zcat --force "$FILE"*

}

journalctl_command(){
    "$@"
}

main()
{

case $1 in
    readadminfile)  ACTION="$1"
                    FILE="$2"
    ;;
    journalctl_command) ACTION="$@"
    ;;
    *) exit 1
    ;;
esac

$ACTION
}

main "$@"
