summaryrefslogtreecommitdiffstats
path: root/prebuilt/common/etc/init.d/03firstboot
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2010-07-05 23:09:35 -0400
committerSteve Kondik <shade@chemlab.org>2010-07-05 23:09:52 -0400
commit8794d1afc95e3cf3d5e15db26890620bed9c0fe9 (patch)
treeea89bca2eff44026500e2963d4518e8c7de92001 /prebuilt/common/etc/init.d/03firstboot
parentf32d926b54e8e5b5e66330be7bfefe6f47607bf0 (diff)
downloadvendor_replicant-8794d1afc95e3cf3d5e15db26890620bed9c0fe9.zip
vendor_replicant-8794d1afc95e3cf3d5e15db26890620bed9c0fe9.tar.gz
vendor_replicant-8794d1afc95e3cf3d5e15db26890620bed9c0fe9.tar.bz2
Add init.d stuff.
Diffstat (limited to 'prebuilt/common/etc/init.d/03firstboot')
-rwxr-xr-xprebuilt/common/etc/init.d/03firstboot9
1 files changed, 9 insertions, 0 deletions
diff --git a/prebuilt/common/etc/init.d/03firstboot b/prebuilt/common/etc/init.d/03firstboot
new file mode 100755
index 0000000..bd084a0
--- /dev/null
+++ b/prebuilt/common/etc/init.d/03firstboot
@@ -0,0 +1,9 @@
+#!/system/bin/sh
+# execute any postinstall script then kill it
+if [ -e /data/firstboot.sh ];
+then
+ log -p i -t boot "Executing firstboot.sh..";
+ logwrapper /system/bin/sh /data/firstboot.sh;
+ rm -f /data/firstboot.sh;
+fi;
+