mirror of https://github.com/hak5/openwrt.git
ltq-vmmc: update permission handling
The firmware is currently just copied. It can end up with o= on the device (this is the case for voice_ar9_firmware.bin for instance). Instead of copying it the Makefile is changed to use the macro "$(INSTALL_DATA)" in order for the file to be world-readable. While at it refactor the device node creation in the init script with loop. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> [removed 2nd part with custom group handling for device nodes] Signed-off-by: Petr Štetiar <ynezz@true.cz>master
parent
2a5460b11b
commit
ff8b8fee89
|
@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=drv_vmmc
|
PKG_NAME:=drv_vmmc
|
||||||
PKG_VERSION:=1.9.0
|
PKG_VERSION:=1.9.0
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_HASH:=707f515eb727c032418c4da67d7e86884bb56cdc2a606e8f6ded6057d8767e57
|
PKG_HASH:=707f515eb727c032418c4da67d7e86884bb56cdc2a606e8f6ded6057d8767e57
|
||||||
|
@ -170,7 +170,7 @@ endef
|
||||||
define KernelPackage/ltq-vmmc/install
|
define KernelPackage/ltq-vmmc/install
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d $(1)/$(FW_DIR)
|
$(INSTALL_DIR) $(1)/etc/init.d $(1)/$(FW_DIR)
|
||||||
$(INSTALL_BIN) ./files/vmmc.init $(1)/etc/init.d/vmmc
|
$(INSTALL_BIN) ./files/vmmc.init $(1)/etc/init.d/vmmc
|
||||||
$(CP) $(PKG_BUILD_DIR)/firmware/$(FW_SOURCE) $(1)/$(FW_DIR)/$(FW_TARGET)
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/firmware/$(FW_SOURCE) $(1)/$(FW_DIR)/$(FW_TARGET)
|
||||||
ln -s /$(FW_DIR)/$(FW_TARGET) $(1)/$(FW_DIR)/$(FW_TARGET_GENERIC)
|
ln -s /$(FW_DIR)/$(FW_TARGET) $(1)/$(FW_DIR)/$(FW_TARGET_GENERIC)
|
||||||
$(CP) $(PKG_BUILD_DIR)/coef/$(COEF_SRC) $(1)/$(FW_DIR)/$(COEF_TARGET)
|
$(CP) $(PKG_BUILD_DIR)/coef/$(COEF_SRC) $(1)/$(FW_DIR)/$(COEF_TARGET)
|
||||||
$(CP) $(PKG_BUILD_DIR)/coef/$(COEF_SRC_FXO) $(1)/$(FW_DIR)/$(COEF_TARGET_FXO)
|
$(CP) $(PKG_BUILD_DIR)/coef/$(COEF_SRC_FXO) $(1)/$(FW_DIR)/$(COEF_TARGET_FXO)
|
||||||
|
|
|
@ -5,15 +5,9 @@
|
||||||
START=31
|
START=31
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
[ ! -c /dev/vmmc10 ] && {
|
for i in 10 11 12 13 14 15 16 17 18; do
|
||||||
mknod /dev/vmmc10 c 122 10
|
if ! [ -e /dev/vmmc$i ]; then
|
||||||
mknod /dev/vmmc11 c 122 11
|
mknod -m 664 /dev/vmmc$i c 122 $i
|
||||||
mknod /dev/vmmc12 c 122 12
|
fi
|
||||||
mknod /dev/vmmc13 c 122 13
|
done
|
||||||
mknod /dev/vmmc14 c 122 14
|
|
||||||
mknod /dev/vmmc15 c 122 15
|
|
||||||
mknod /dev/vmmc16 c 122 16
|
|
||||||
mknod /dev/vmmc17 c 122 17
|
|
||||||
mknod /dev/vmmc18 c 122 18
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue