Results 1 to 5 of 5
Discuss [Scripting] Start up script at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; If I want the iphone to run a shell script at startup time at root ...
  1. #1
    JN2
    JN2 is offline
    Senior Professional Array

    Join Date
    Mar 2008
    Posts
    170
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default [Scripting] Start up script

    If I want the iphone to run a shell script at startup time at root permissions, where should I put such script and how should I trigger it at startup?

    Thanks in advance.



  2. #2
    Rookie Array

    Join Date
    Feb 2008
    Posts
    26
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    i think it's /Library/LaunchDaemons/
    please correct me if it isn't.

  3. #3
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by JN2 View Post
    If I want the iphone to run a shell script at startup time at root permissions, where should I put such script and how should I trigger it at startup?

    Thanks in advance.
    Check here
    http://hackint0sh.org/forum/showthread.php?p=282630
    my post #6. It's for a different problem but same procedure and working.

    volkspost
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

  4. #4
    JN2
    JN2 is offline
    Senior Professional Array

    Join Date
    Mar 2008
    Posts
    170
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    Quote Originally Posted by volkspost View Post
    Check here
    http://hackint0sh.org/forum/showthread.php?p=282630
    my post #6. It's for a different problem but same procedure and working.

    volkspost
    In your example, will the script run with root permissions?

    Thanks

  5. #5
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by JN2 View Post
    In your example, will the script run with root permissions?

    Thanks
    As far as I remember it does. The nice thing about this one is that it is only executed once at first startup, then deleting the LaunchDaemon, then deleting the script itself.

    Hope that helps,
    volkspost

    p.s.: If you do have access to Pwnage for Mac or Windows, create a custom firmware and open it. The LaunchDaemons (including the one created by pwnage tool are in LittleBears's /System/Library/LaunchDaemons. Thats how I found out about this cool procedure option.
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2


 

 

Similar Threads

  1. Scripting from lsof output
    By sailor0703 in forum Genuine Mac Support
    Replies: 1
    Last Post: 03-30-2011, 09:00 PM
  2. Help with Terminal Scripting
    By MicroLabrat in forum Using Snow Leopard
    Replies: 0
    Last Post: 01-30-2011, 12:10 AM
  3. Scripting Language for APPLE
    By JayBird in forum Genuine Mac Support
    Replies: 0
    Last Post: 12-29-2008, 09:16 PM
  4. Scripting minicom possible?
    By Tego in forum Free Toolchain Software (Cydia App's)
    Replies: 11
    Last Post: 11-17-2007, 09:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:38 AM.
twitter, follow us!