Difference between revisions of "Talk:Adding flash support"

From WebOS Internals
Jump to navigation Jump to search
(* after extracting etc & usr from rootfs.tgz;verizon_webosdr.jar ; run this script to make your "rom")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
How can you (script) extract the rootfs.tgz from the verizondoctor.jar? If you could add this to below, users can just run this script.
+
How can you (script) extract the rootfs.tgz from the verizondoctor.jar? If you could add this to below, users can just
 
+
[http://pastebin.ca/2055154 run this script.]
#!/bin/sh
 
func_list() {
 
cat>$list_text<<EOF
 
etc/adobe/ mms.cfg
 
etc/adobe/ oem.cfg
 
usr/lib/BrowserServerPlugins/ libflashplayer.so
 
usr/lib/BrowserServerPlugins/resource/ plugin-icon-noplay.png
 
usr/lib/BrowserServerPlugins/resource/ plugin-icon-play-down.png
 
usr/lib/BrowserServerPlugins/resource/ plugin-icon-play.png
 
usr/lib/BrowserServerPlugins/resource/ plugin-icon-unknown.png
 
usr/lib/BrowserServerPlugins/resource/ plugin-scrim.png
 
usr/lib/ libFlashGraphics.so
 
usr/lib/BrowserServerPlugins/FlashMiniAdapterData/ plugin-icon-noplay.png
 
usr/lib/BrowserServerPlugins/FlashMiniAdapterData/ plugin-icon-play.png
 
usr/lib/BrowserServerPlugins/FlashMiniAdapterData/ plugin-icon-unknown.png
 
usr/lib/BrowserServerPlugins/FlashMiniAdapterData/ plugin-scrim.png
 
usr/lib/BrowserServerPlugins/ FlashMiniPlugin.so
 
EOF
 
}
 
######
 
# oc80z
 
local list_text="list.txt"
 
local list_fldr="files" #do not modify
 
func_list
 
mkdir $list_fldr >&- 2>&-
 
for x in $(cat $list_text) ; do
 
touch dirs.sh copy.sh ; chmod +x *.sh
 
echo $(awk '{print "mkdir -p","files/"$1,";"}' "$list_text") > dirs.sh
 
echo $(awk '{print "cp",$1$2,"files/"$1,";"}' "$list_text") > copy.sh
 
done
 
./dirs.sh
 
./copy.sh
 
echo "Copied $(wc -l "$list_text" | awk '{print $1}') files to `pwd`/"$list_fldr" \
 
($(du -sh "$list_fldr" | sed -e "s/$list_fldr/total/" |  awk '{print $1,$2}'))"
 

Latest revision as of 04:06, 8 May 2011

How can you (script) extract the rootfs.tgz from the verizondoctor.jar? If you could add this to below, users can just run this script.