NEW PROJECT: SSH toggle from Settings

Discussion in 'iOS Development' started by jamied360, Jul 3, 2010.

  1. jamied360

    jamied360 New Member

    Jul 12, 2008
    Likes Received:
    I've been trying to create a really simple PreferenceBundle. I understand PreferenceBundles allow you to execute code (unlike Settings bundles)

    See here for a great guide:

    It would allow you to toggle SSH on or off with a slider switch (much like the WiFi toggle) This would be great for people who are trying to cut down on MobileSubstrate extensions (like me) so you don't have to use SBSettings.

    It would something look like this (with a better icon, lol):

    Please Register or Log in to view images

    To cut it short.. i suck at developing, and i was wondering if a more experienced dev would have a go at creating this? I'd really appreciate it. it shouldn't take very long at all, and the end product would look sweet.

    I think the command to enable/disable SSH is something like this, this would be executed when the user flips the toggle switch. Anyway, i'm pretty much a noob at programming, so these commands might be wrong. Someone more experienced than me will probably know anyway...

    To enable SSH
    su root
    launchctl load 
    To disable SSH
    su root
    launchctl unload 

Share This Page