Bad loginhook script hangs the machine after login

Discussion in 'Mac Basics and Help' started by Athan, Feb 28, 2009.

  1. Athan macrumors newbie

    Feb 28, 2009
    So, I was exploring with synergy and found about this LoginHook. I made a script as advised here: (Second method for OSX).

    At first script provided in tutorial didn't work out, as synergy started without -f (no-daemon) seemingly does nothing, and does not even give an error message.. So without giving it a proper thought I added the -f flag. Now as I do login on any user, screen hangs as it runs the script (and I can move the mouse around over synergy client, so at least that works... )

    So how can I get my hands on that script without normal login? Safe Boot mode didn't help, and I wasn't able to connect via SSH. Is there any way besides reinstalling the whole system?

    Oh and I'm running with Leopard on oldish G5 powermac, if that helps
  2. Athan thread starter macrumors newbie

    Feb 28, 2009
    Ah worked it out myself, with a little help from someone who mentioned how to start from disk on startup ;)

    So solution worked as follows:

    1. Inserted installation DVD
    2. Booted up, with C pressed to start up from disk
    3. Opened terminal within the installer
    4. $ diskutil mountDisk /Volume/<hdd name>
    5. Navigated to my script and removed it.
    6. reboot

    So thanks for the help, and hope this helps anyone who might try their luck
  3. hDy macrumors newbie

    Jul 10, 2009
    Still no luck, I get to the utility, start Terminal, type "diskutil mountDisk /Volumes/<hdd name>" then cd /Volumes/<hdd name>/Library/LoginWindow then I did an ls to make sure the file is there, then "rm" then ls again to see if it worked, file gone. Hold power button to hardboot.

    Rebooted, system comes back up, still hangs. - Reboot back in to install cd, remount hdd, cd to LoginWindow... is still there.. how do I make sure my delete command is actually written to the disk? :/


    Oops.. I had a feeling a *hard boot* wasn't the answer after deleting the if you just type restart in the terminal it will write the delete to the disk and reboot the system. :)
  4. JP89Hornet macrumors regular


    Jul 23, 2006
    Okay so I have been frantically searching this forum for this answer, but I cannot find the file...

    Any ideas???

Share This Page