|
@@ -38,6 +38,18 @@ fw_unzip() {
|
|
|
rm -f "$@"
|
|
|
}
|
|
|
|
|
|
+# Download *.deb file and install into IROOT without using sudo
|
|
|
+# Does not download dependant packages
|
|
|
+#
|
|
|
+# Example: fw_apt_to_iroot <package> [<directory>]
|
|
|
+fw_apt_to_iroot() {
|
|
|
+ DIR=${2:-$1}
|
|
|
+ echo "Downloading $1 to $IROOT"
|
|
|
+ apt-get download $1
|
|
|
+ echo "Extracting $1 to $DIR"
|
|
|
+ dpkg-deb -x $1*.deb "$IROOT/$DIR" && rm $1*.deb
|
|
|
+}
|
|
|
+
|
|
|
# Was there an error for the current dependency?
|
|
|
FW_dep_error=0
|
|
|
# Have we seen any errors?
|