Automatically install .deb packages on the okreader rootfs
This commit is contained in:
parent
84cc43168f
commit
6caf3d1fc8
@ -81,6 +81,16 @@ config_rootfs() {
|
|||||||
echo "Configuration done."
|
echo "Configuration done."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_packages() {
|
||||||
|
cp src/linux-okreader-modules_2.6.35.3-1_armhf.deb rootfs/
|
||||||
|
cp src/firmware-okreader_1.0-1_armhf.deb rootfs/
|
||||||
|
cp src/koreader_2016.01-3_armhf.deb rootfs/
|
||||||
|
|
||||||
|
chroot rootfs/ bash -c "dpkg -i /*.deb"
|
||||||
|
|
||||||
|
rm rootfs/*.deb
|
||||||
|
}
|
||||||
|
|
||||||
clean_up_rootfs() {
|
clean_up_rootfs() {
|
||||||
echo "Cleaning up..."
|
echo "Cleaning up..."
|
||||||
|
|
||||||
@ -109,6 +119,7 @@ build_rootfs() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
config_rootfs
|
config_rootfs
|
||||||
|
install_packages
|
||||||
clean_up_rootfs
|
clean_up_rootfs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user