diff --git a/Makefile b/Makefile index ca82e7f4..efb4ad06 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ install: mkdir -p ${DESTDIR}${PREFIX}/bin mkdir -p ${DESTDIR}/etc/${APP} cp -r image_build/* ${DESTDIR}/etc/${APP} + install -m 755 img/backgrounds/${APP}_mesh_background.png ${DESTDIR}${PREFIX}/share install -m 755 src/* ${DESTDIR}${PREFIX}/bin install -m 755 src/${APP}-meshweb ${DESTDIR}${PREFIX}/bin/meshweb install -m 755 src/${APP}-controlpanel ${DESTDIR}${PREFIX}/bin/control @@ -32,6 +33,7 @@ install: install -m 644 man/${APP}-restore-local.1.gz ${DESTDIR}${PREFIX}/share/man/man1/restore.1.gz bash -c "./translate install" uninstall: + rm -f ${PREFIX}/share/${APP}_mesh_background.png rm -f ${PREFIX}/share/man/man1/backup.1.gz rm -f ${PREFIX}/share/man/man1/restore.1.gz rm -f ${PREFIX}/share/man/man1/${APP}*.1.gz diff --git a/img/backgrounds/freedombone_mesh_background.png b/img/backgrounds/freedombone_mesh_background.png new file mode 100644 index 00000000..26690405 Binary files /dev/null and b/img/backgrounds/freedombone_mesh_background.png differ diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 27222f19..790fab67 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -94,6 +94,9 @@ WIFI_NETWORKS_FILE=~/${PROJECT_NAME}-wifi.cfg # Whether to install non-free wifi drivers for the mesh client INSECURE='no' +# optional desktop background image for mesh +MESH_DESKTOP_BACKGROUND_IMAGE=/usr/local/share/${PROJECT_NAME}_mesh_background.png + enable_eatmydata_override() { chroot $rootdir apt-get install --no-install-recommends -y eatmydata if [ -x $rootdir/usr/bin/eatmydata ] && \ @@ -1071,6 +1074,22 @@ function configure_user_interface { # desktop chroot "$rootdir" apt-get -y install mate-desktop-environment lightdm + if [[ $VARIANT != "usb" ]]; then + if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then + if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then + if [ -d $rootdir/usr/share/plymouth/themes/joy ]; then + cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/plymouth/themes/joy/background.png + fi + if [ -d $rootdir/usr/share/plymouth/themes/lines ]; then + cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/plymouth/themes/lines/background.png + fi + if [ -d $rootdir/usr/share/plymouth/themes/spacefun ]; then + cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/plymouth/themes/spacefun/background.png + fi + fi + fi + fi + # browser chroot "$rootdir" apt-get -y install iceweasel