timekpr.install 530 B

12345678910111213141516171819202122232425
  1. post_install() {
  2. /usr/bin/timekpr.postinst
  3. echo "Your su command (gksu|gksudo|kdesu|kdesudo etc) for starting timekpr-gui as root: "
  4. read su_command;
  5. sed -i "s/gksu/${su_command}/" "/usr/share/applications/timekpr.desktop"
  6. echo
  7. echo "Start the timekpr daemon with '/etc/rc.d/timekprd start'"
  8. echo "For permanent use put 'timekprd' into your DAEMONS array."
  9. }
  10. post_upgrade() {
  11. post_install
  12. }
  13. pre_remove() {
  14. /usr/bin/timekpr.postrm purge
  15. }
  16. post_remove() {
  17. echo "Remove the timekprd entry from your DAEMONS array."
  18. }