]> git.plutz.net Git - blast/blobdiff - modules/nodm.mk
account for different chromium binary name on raspbian
[blast] / modules / nodm.mk
index 6b810faecf434a4a3c9c0b7799517e0b70d0f5e3..2d3b6ee12c4f46693939f346ba86c782ed3fc9d1 100644 (file)
@@ -1,11 +1,7 @@
 ifdef raspi
-  PACKAGES += nodm xserver-xorg-input-evdev
-define RPICONFIG +=
-
-dtoverlay=vc4-fkms-v3d,cma-128
-endef
+  PACKAGES += nodm xserver-xorg-input-evdev libgl1-mesa-dri
 else
-  PACKAGES += nodm xserver-xorg-video-all xserver-xorg-input-all
+  PACKAGES += nodm xserver-xorg-video-all xserver-xorg-input-all libgl1-mesa-dri
 endif
 
 define DEBCONF +=
@@ -24,13 +20,15 @@ endif
 ifdef webui
   _config: _nodm_cfg
   ifdef raspi
+    nodm_browser := chromium-browser
     PACKAGES += chromium-browser
   else
+    nodm_browser := chromium
     PACKAGES += chromium
   endif
 define DEBCONF +=
 
-nodm   nodm/xsession   string  /usr/bin/chromium --app=${webui}
+nodm   nodm/xsession   string  "/usr/bin/${nodm_browser} --app=${webui}"
 endef
 endif
 
@@ -40,6 +38,11 @@ _nodm_cfg: ${CFGROOT}
        rm "$${CFGROOT}/etc/default/nodm"
        chroot "$${CFGROOT}" dpkg-reconfigure --default-priority -u nodm
 
+ifdef users
+  _nodm_user: _users
+endif
+
 _nodm_user: ${CFGROOT}
        chroot "${CFGROOT}" adduser "${nodm_user}" video
        chroot "${CFGROOT}" adduser "${nodm_user}" input
+