[G1 Android Development] Firerat:
fails - big time !!

all you have done is change the shabangs to the recovery's /sbin/sh , but they are installed to the Phone, so will not work in the ROM !!!

the shabangs should not matter in recovery as they are executed directly with sh

Future versions will work in RA recovery better , as I will setup busybox aliases

Sparksco, nice try but you really should understand what you are doing before doing stuff

--- fr-patch141-BETA3.sh-sparksco 2010-12-18 22:28:21.882921000 +0000
+++ fr-patch141-BETA3.txt 2010-11-09 18:32:57.000000000 +0000
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!/system/bin/sh
# v1.4.0 2010-09-06 Firerat, broke script down
# split the 20userinit check up to do two tests instead of one
##
@@ -191,7 +191,7 @@
## begin scripts
FroYoApps2sdext ()
{
-#!/sbin/sh
+#!/system/bin/sh
# 2010-07-13 Firerat - symlink apps from /data/app/ to sd-ext/app/
# optionally leave apps on /data/app/
# optionally move froyo fat apps to sd-ext
@@ -247,7 +247,7 @@
fi
# install sd-ext mount script
cat > /dev/05mountsd << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
#
# mount ext[234] partition from sd card

@@ -452,7 +452,7 @@
{
initd=/sd-ext/userinit.d
cat > /dev/10data2sdext-binds << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
# a2sd bind mounts

# remove FroYo a2sdext hack if official a2sd is live [ Firerat ]
@@ -572,7 +572,7 @@
datadatabinds ()
{
cat > /dev/11datadata-binds << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
if [ "$1" = "off" ];
then
FreeData=`df|awk '$6 == "/data" {print $4}'`
@@ -641,12 +641,12 @@
ApkManager ()
{
cat > /dev/ApkManager.sh << "EOAPKMANAGER"
-#!/sbin/sh
+#!/system/bin/sh
if [ ! -e /system/bin/ApkManager.sh -o "$1" = "force" ];
then
busybox mount -o rw,remount /system
cat > /dev/ApkManager.sh << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
# ApkManager.sh v0.5
me=$0
applist=/dev/appslist.txt
@@ -1032,7 +1032,7 @@
return
fi
cat > /dev/10bind-dc << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
if [ "`mount |grep -q dalvik-cache;echo $?`" = "1" ];
then
if [ -e /cache/dalvik-cache ] && [ ! -d /cache/dalvik-cache ];
@@ -1065,7 +1065,7 @@
fi

cat > /dev/10bind-dc << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
if [ "`mount |grep -q dalvik-cache;echo $?`" = "1" ];
then
if [ "`egrep -q "sd-ext|/system/sd" /proc/mounts;echo $?`" = "0" ];
@@ -1163,7 +1163,7 @@
#if [ ! -e ${initd}/15GPU_perms ];
#then
cat > ${initd}/15GPU_perms << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
# restrictive Perms for GPU - Firerat 2010-05-05
# NB, see also /system/etc/permissions/hw3d.xml
if [ -e /dev/msm_hw3dc ];
@@ -1224,7 +1224,7 @@
# remount installer - Firerat 2010-05-04
remountrw
cat > /system/bin/remount << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
# make system files rw/ro - Firerat 2010-04-13
# symlink options - Firerat 2010-05-01
# sectioned into functions, was bored - Firerat 2010-05-04
@@ -1315,7 +1315,7 @@
fi
# install sd-ext mount script ( from cm5 )
cat > /dev/05mountsd << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
#
# mount ext[234] partition from sd card

@@ -1440,7 +1440,7 @@
remountrw
for droidscript in am pm bmgr ime input monkey svc ;do
droidscript=/system/bin/${droidscript}
- if [ "`grep -q '#!/sbin/sh' ${droidscript};echo $?`" = "0" ];
+ if [ "`grep -q '#!/system/bin/sh' ${droidscript};echo $?`" = "0" ];
then
echo "${droidscript} already has a shabang"
else
@@ -1463,7 +1463,7 @@
useswapdefaults=n
fi
cat > /dev/swappy << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
swappy ()
{
echo `awk '{ print "current swappiness="$1 }' /proc/sys/vm/swappiness`
@@ -1659,7 +1659,7 @@
if [ ! -e ${initd}/25Swap ];
then
cat > ${initd}/25Swap << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
# Autoswap - Firerat 2010-05-05
# thought about doing the partition check as per cm5 05mountsd
# but then I remembered that I couldn't do that with other busyboxes
@@ -1731,7 +1731,7 @@
fi
fi
cat > /dev/11datadata-binds << "EOF"
-#!/sbin/sh
+#!/system/bin/sh
if [ "$1" = "off" ];
then
FreeData=`df|awk '$6 == "/data" {print $4}'`