Results 1 to 3 of 3
Discuss Shell command for turning WIFI on/off at the General - Hackint0sh.org; Hi, I have a little shell-script, that logs me in at the hotspots here at ...
  1. #1
    Senior Professional Array

    Join Date
    Aug 2007
    Posts
    117
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default Shell command for turning WIFI on/off

    Hi, I have a little shell-script, that logs me in at the hotspots here at my university. However it would be nice if I could also turn on/off the wifi before doing the login with curl. Do you know if there is a shell command to turn wifi on/off. Like launchctl load ...



  2. #2
    Amazingly Knowledgeable Array Locked's Avatar

    Join Date
    Aug 2007
    Location
    127.0.0.1
    Posts
    900
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    53

    Default

    Assuming the same commands for os x work on the iphone, then it might be ifconfig en0 down.

  3. #3
    Senior Professional Array

    Join Date
    Aug 2007
    Posts
    117
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default

    Quote Originally Posted by Locked View Post
    Assuming the same commands for os x work on the iphone, then it might be ifconfig en0 down.
    At least ifconfig en0 up doesn't work, since en0 is always up, even if WIFI is turned off.

 

 

Similar Threads

  1. [shell] [c] Get current location from shell or program.c?
    By trasherz in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 07-26-2011, 08:11 AM
  2. execute shell command from Windows
    By goodron in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 12-21-2010, 09:50 AM
  3. command line for turning the screen off? (and back on...)
    By twinotter in forum Free Toolchain Software (Cydia App's)
    Replies: 1
    Last Post: 01-10-2008, 09:35 PM
  4. Replies: 2
    Last Post: 10-18-2007, 07:45 PM
  5. Replies: 14
    Last Post: 10-01-2007, 12:28 PM

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 07:16 AM.
twitter, follow us!