Attached is a rewrite of Airplane for iPhone OS 2.1
The installation instructions are somewhat different. Unzip the attached archive and copy Airplane.app to /Applications on your iPhone. You must ensure that within Airplane.app Airplane and Airplaned are executable (e.g. your copy doesn't break the execute permission).
Next copy com.mode.plist and com.mode.tz.plist to /Library/LaunchDaemons.
Unfortunately launchctl must be setuid for the Airplane to function properly (e.g. chmod +s /bin/lauchctl).
Finally you need to force SpringBoard to accept the new application.
Code:
Example commands:
From your host computer execute,
scp -r Airplane.app root@iphone.local:/Applications
scp com.mode.plist com.mode.tz.plist root@iphone.local:/Library/LaunchDaemons
Then ssh to your iphone,
ssh root@iphone.local
and type,
rm ~mobile/Library/Caches/com.apple.mobile.installation.plist
killall SpringBoard
Note that the above assumes that the name of your iPhone is in fact "iphone". Otherwise replace "iphone.local" with the IP address of your iPhone.
I have been testings this code this week and it appears to work. Please report issues in this thread. Next week I'm going to ask someone to put this up on Cydia.