[Foo2zjs-commits] r50 - trunk/foo2zjs_20070718dfsg/debian/patches
bedo-guest at alioth.debian.org
bedo-guest at alioth.debian.org
Fri Aug 17 08:43:45 UTC 2007
Author: bedo-guest
Date: 2007-08-17 08:43:45 +0000 (Fri, 17 Aug 2007)
New Revision: 50
Added:
trunk/foo2zjs_20070718dfsg/debian/patches/60-getweb.dpatch
Modified:
trunk/foo2zjs_20070718dfsg/debian/patches/00list
Log:
Initial patch for usign getweb also for installing the firmware insted of
only downloading it.
At this time, i tested that only with the Hp 1018, and it works fine, so i
wonder it can work also with the 1000,1005,1020.
Modified: trunk/foo2zjs_20070718dfsg/debian/patches/00list
===================================================================
--- trunk/foo2zjs_20070718dfsg/debian/patches/00list 2007-08-15 09:52:04 UTC (rev 49)
+++ trunk/foo2zjs_20070718dfsg/debian/patches/00list 2007-08-17 08:43:45 UTC (rev 50)
@@ -3,3 +3,4 @@
30-udev-rules
40-path-correction
50-fix-grotty-warnings
+60-getweb.dpatch
Added: trunk/foo2zjs_20070718dfsg/debian/patches/60-getweb.dpatch
===================================================================
--- trunk/foo2zjs_20070718dfsg/debian/patches/60-getweb.dpatch (rev 0)
+++ trunk/foo2zjs_20070718dfsg/debian/patches/60-getweb.dpatch 2007-08-17 08:43:45 UTC (rev 50)
@@ -0,0 +1,58 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 60-getweb.dpatch by Luca Bedogni <me at lucabedogni.it>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Improve getweb also for installing the firmware
+
+ at DPATCH@
+--- foo2zjs_20070718/getweb 2007-08-15 23:44:04.000000000 +0200
++++ foo2zjs_20070718/getweb 2007-08-16 00:06:01.000000000 +0200
+@@ -63,6 +63,18 @@
+ fi
+
+ #
++# Put firmware in right place
++putfw() {
++ inputname=$1
++ outputname=$2
++ if [ $UID -ne 0 ]; then
++ echo "Please, type root's password..."
++ su -c "arm2hpdl $inputname > /usr/share/foo2zjs/firmware/$outputname"
++ exit
++ fi
++}
++
++#
+ # Download a .EXE file from the web, unzip it, and extract the
+ # files we want
+ getexe() {
+@@ -96,6 +108,7 @@
+ gettgz \
+ http://foo2zjs.rkkda.com sihp1000.tar.gz \
+ ""
++ putfw sihp1000.img sihp1000.dl
+ #echo "provided"
+ #getexe \
+ #ftp://ftp.hp.com/pub/softlib/software1/lj1488/lj-1145-2 \
+@@ -106,6 +119,7 @@
+ gettgz \
+ http://foo2zjs.rkkda.com sihp1005.tar.gz \
+ ""
++ putfw sihp1005.img sihp1005.dl
+ #echo "provided"
+ #getexe \
+ #ftp://ftp.hp.com/pub/softlib/software2/COL2222/lj-10067-2 \
+@@ -116,11 +130,13 @@
+ gettgz \
+ http://foo2zjs.rkkda.com sihp1018.tar.gz \
+ ""
++ putfw sihp1018.img sihp1018.dl
+ ;;
+ lj1020|1020)
+ gettgz \
+ http://foo2zjs.rkkda.com sihp1020.tar.gz \
+ ""
++ putfw sihp1020.img sihp1020.dl
+ ;;
+ 2200dl|2200)
+ getexe \
More information about the Foo2zjs-commits
mailing list