pandora-state: change nubs.state permissions
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 19 Jul 2015 13:22:05 +0000 (16:22 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 19 Jul 2015 18:14:58 +0000 (21:14 +0300)
because configurator runs without root

recipes/pandora-system/pandora-state.bb
recipes/pandora-system/pandora-version.bb

index 2efb435..4f5cc4a 100755 (executable)
@@ -27,10 +27,17 @@ do_install() {
           install -m 0644 ${WORKDIR}/gamma.state ${D}${sysconfdir}/pandora/conf/gamma.state
          install -m 0644 ${WORKDIR}/dssgamma.state ${D}${sysconfdir}/pandora/conf/dssgamma.state
           install -m 0644 ${WORKDIR}/brightness.state ${D}${sysconfdir}/pandora/conf/brightness.state
           install -m 0644 ${WORKDIR}/gamma.state ${D}${sysconfdir}/pandora/conf/gamma.state
          install -m 0644 ${WORKDIR}/dssgamma.state ${D}${sysconfdir}/pandora/conf/dssgamma.state
           install -m 0644 ${WORKDIR}/brightness.state ${D}${sysconfdir}/pandora/conf/brightness.state
-         install -m 0644 ${WORKDIR}/nubs.state ${D}${sysconfdir}/pandora/conf/nubs.state
          install -m 0644 ${WORKDIR}/dirty_expire_centisecs ${D}${sysconfdir}/pandora/conf/dirty_expire_centisecs
          install -m 0644 ${WORKDIR}/dirty_expire_centisecs ${D}${sysconfdir}/pandora/conf/dirty_expire_centisecs
+         # nub configurator runs without root
+         install -m 0666 ${WORKDIR}/nubs.state ${D}${sysconfdir}/pandora/conf/nubs.state
 }
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 FILES_${PN} += "${prefix} ${datadir}"
 }
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 FILES_${PN} += "${prefix} ${datadir}"
+
+CONFFILES_${PN} += ${sysconfdir}/pandora/conf/nubs.state
+CONFFILES_${PN} += ${sysconfdir}/pandora/conf/gamma.state
+CONFFILES_${PN} += ${sysconfdir}/pandora/conf/dssgamma.state
+CONFFILES_${PN} += ${sysconfdir}/pandora/conf/brightness.state
+CONFFILES_${PN} += ${sysconfdir}/pandora/conf/nubs.state
index 2ec73db..839a8e9 100644 (file)
@@ -1,6 +1,6 @@
 DESCRIPTION = "Installs /etc/op-version file."
 LICENSE = "Public Domain"
 DESCRIPTION = "Installs /etc/op-version file."
 LICENSE = "Public Domain"
-PR = "r8"
+PR = "r9"
 
 do_install() {
   OLD_PWD=$PWD
 
 do_install() {
   OLD_PWD=$PWD