Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
update uninstall & installer params
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo authored and tekezo committed Apr 17, 2008
1 parent 80ced61 commit 6e280dd
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
9 changes: 7 additions & 2 deletions files/extra/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ rm -rf /Library/org.pqrs/KeyRemap4MacBook

rm -rf /Library/PreferencePanes/KeyRemap4MacBook.prefPane

rm -ff /Library/LaunchDaemons/org.pqrs.KeyRemap4MacBook.*
rm -ff /Library/LaunchAgents/org.pqrs.KeyRemap4MacBook.*
rm -f /Library/LaunchAgents/org.pqrs.KeyRemap4MacBook.*
rm -f /Library/LaunchDaemons/org.pqrs.KeyRemap4MacBook.*

# ----------------------------------------
# kill processes
killall KeyRemap4MacBook_server


exit 0
2 changes: 1 addition & 1 deletion pkginfo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<false/>

<key>IFPkgFlagRestartAction</key>
<string>NoRestart</string>
<string>RecommendedRestart</string>

<key>IFPkgFlagRootVolumeOnly</key>
<true/>
Expand Down
2 changes: 1 addition & 1 deletion pkginfo/Info.plist.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<false/>

<key>IFPkgFlagRestartAction</key>
<string>NoRestart</string>
<string>RecommendedRestart</string>

<key>IFPkgFlagRootVolumeOnly</key>
<true/>
Expand Down
2 changes: 0 additions & 2 deletions pkginfo/Resources/postflight
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin; export PATH
startup="/Library/org.pqrs/KeyRemap4MacBook/scripts/startup.sh"
[ -f "$startup" ] && "$startup" quickstart

launchctl load /Library/LaunchAgents/org.pqrs.KeyRemap4MacBook.server.plist

exit 0
9 changes: 7 additions & 2 deletions pkginfo/Resources/preflight
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ done
# uninstall
rm -rf /Library/StartupItems/KeyRemap4MacBook
rm -rf /Applications/KeyRemap4MacBook
rm -rf /Library/LaunchAgents/org.pqrs.KeyRemap4MacBook.*
rm -rf /Library/LaunchDaemons/org.pqrs.KeyRemap4MacBook.*
rm -f /Library/LaunchAgents/org.pqrs.KeyRemap4MacBook.*
rm -f /Library/LaunchDaemons/org.pqrs.KeyRemap4MacBook.*

# ----------------------------------------
# kill processes
killall KeyRemap4MacBook_server


exit 0

0 comments on commit 6e280dd

Please sign in to comment.