06/30/2009, 12:15 PM
|
#221 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 52
Likes Received: 0
Thanks: 6
Thanked 2 Times in 2 Posts
|
Quote:
|
|
06/30/2009, 03:40 PM
|
#226 (permalink) |
|
Member
![]() Join Date: Mar 2008
Posts: 921
Likes Received: 7
Thanks: 169
Thanked 229 Times in 141 Posts
|
I've made a modification to the tether.sh script that jhoff posted, to get it to gather status. E.g.
tehter.sh status returns "on" if all 3 componets of tethering are enabled: (wifi, nat, ip forwarding) returns "off" otherwise I want to modify jhoff's code so that when you start the app it will query the status and put the toggle in the correct position. I'm looking at the devmode app as a way of doing this. It appears to have a "configure" function. That does everything. But I can't find where that function is called. Does webOS when starting the tether-assistant.js automatically call both setup and configure? For details see the following file on the pre: /usr/palm/applications/com.palm.app.devmodeswitcher/app/controllers/devmodeswitcher-assistant.js Anyone? Bueller? |
06/30/2009, 07:36 PM
|
#227 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 13
Likes Received: 0
Thanks: 3
Thanked 1 Time in 1 Post
|
Hi Jhoff,
Looks like I got your app up, but could not install the org.webosinternals.services IPKG-Opt. It kept coming back as: ----- root@castle:/opt/bin# ipkg-opt install org.webosinternals.services Nothing to be done An error ocurred, return value: 4. Collected errors: Cannot find package org.webosinternals.services. Check the spelling or perhaps run 'ipkg update' root@castle:/opt/bin# ----- Not sure what i need to do, but the package was downloaded to "/opt/bin" |
06/30/2009, 07:42 PM
|
#228 (permalink) | |
|
Member
![]() ![]() ![]() Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
|
Quote:
Also, for some reason when I kept the name as-is, I was having issues. I renamed it to shell.ipk and then did ipkg-opt install shell.ipk and it worked fine. Maybe that'll work for you as well. |
|
06/30/2009, 08:35 PM
|
#233 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 13
Likes Received: 0
Thanks: 3
Thanked 1 Time in 1 Post
|
Basically what i did was:
"cd /opt/bin/ directory wget http: //gitorious.org/webos-internals/applications/trees/master/org.webosinternals.services mv org.webosinternals.services shell.ipk ipkg-opt install shell.ipk" Thats how i got that error, was that the correct way to install? |
06/30/2009, 08:49 PM
|
#234 (permalink) | |
|
Member
![]() ![]() ![]() Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
|
Quote:
I think maybe that it might be that when you do it like that it's giving you just the directory. Try this link directly to it. http://gitorious.org/webos-internals...94b2490bfaaae5 |
|
06/30/2009, 10:06 PM
|
#236 (permalink) |
|
Member
![]() Join Date: Mar 2008
Posts: 921
Likes Received: 7
Thanks: 169
Thanked 229 Times in 141 Posts
|
That error happens when the file that you're trying to install is not actually a .ipk file. It means that you haven't downloaded the correct file.
Click on this link. Then on the page that comes up, right click on the link and copy. Then wget that link. |
07/01/2009, 04:06 AM
|
#237 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 52
Likes Received: 0
Thanks: 6
Thanked 2 Times in 2 Posts
|
jhoff80,
I packaged your tethering app into an ipk and installed on my pre via wget method and then ipkg-opt installed it. I also installed the webosinternals.services package that was mentioned a few posts up on this page. However, when I run the app and move the slider in the app, nothing happens. I feel as though I'm missing a step...did I miss something in the pages between your tutorial post and now? Last edited by tweak41; 07/01/2009 at 04:19 AM. |
07/01/2009, 07:15 AM
|
#238 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Posts: 308
Likes Received: 0
Thanks: 18
Thanked 657 Times in 59 Posts
|
MOVED: http://forums.precentral.net/showthread.php?p=1735750
![]() Instructions (version 1.1.1): Root into your pre, in command line type the following commands: Code:
cd /tmp/
mount -o remount rw, /
wget http://vz.aonic.net:8080/~raja/pre/net.aonic.my-tether_1.1.1_all.ipk
ipkg install net.aonic.my-tether_1.1.1_all.ipk
wget http://gitorious.org/webos-internals/applications/blobs/raw/db385edfa3f71ceb98401c16dd94b2490bfaaae5/org.webosinternals.services/org.webosinternals.services-0.4_all.ipk
ipkg install org.webosinternals.services-0.4_all.ipk
rm org.webosinternals.services-0.4_all.ipk net.aonic.my-tether_1.1.1_all.ipk
mount -o remount ro, /
/usr/bin/luna-send palm://com.palm.applicationManager/rescan {}
This update prompts you to enable DHCP if your Pre doesn't already have it enabled. If you already installed a previous version, here are instructions to upgrade: Code:
cd /tmp/
mount -o remount rw, /
http://vz.aonic.net:8080/~raja/pre/net.aonic.my-tether_1.1.1_all.ipk
ipkg install net.aonic.my-tether_1.1.1_all.ipk
rm net.aonic.my-tether_1.1.1_all.ipk
mount -o remount ro, /
/usr/bin/luna-send palm://com.palm.applicationManager/rescan {}
I just made a new version with some tweaks and UI friendly additions. Now the application detects if tethering is already enabled and puts the toggle in the correct place based on that. It also prompts you to enable USBNET if you try to toggle without enabling it. If you already installed 1.0, here are instructions to upgrade: Code:
cd /tmp/
mount -o remount rw, /
wget http://vz.aonic.net:8080/~raja/pre/net.aonic.my-tether_1.1_all.ipk
ipkg install net.aonic.my-tether_1.1_all.ipk
rm net.aonic.my-tether_1.1_all.ipk
mount -o remount ro, /
/usr/bin/luna-send palm://com.palm.applicationManager/rescan {}
Last edited by aonic; 07/07/2009 at 09:41 AM. |
07/01/2009, 08:33 AM
|
#239 (permalink) |
|
Member
![]() Join Date: Jun 2006
Posts: 66
Likes Received: 0
Thanks: 12
Thanked 3 Times in 3 Posts
|
Great work!
Two caveats: make sure the operating system is rw before installing and the Pre has to be restarted for the icon to show up in the launcher. These are pretty much common knowledge, but I forgot both so I thought I would remind folks. ![]() -darren |
07/01/2009, 08:36 AM
|
#240 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Posts: 308
Likes Received: 0
Thanks: 18
Thanked 657 Times in 59 Posts
|
Thank you!
I believe the ipk system handles making it rw, and the reason I said to install the shell service last is because the shell services postinstall script refreshes the launcher. Downloading to /tmp avoids having to manually change w to rw and back to w. ![]() I may be wrong_ but that's how it worked for my pre. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



