소스 검색

brcm2708: fix early bootloader config restore

Restoring the bootloader config before rebooting fails:
tar: invalid tar magic

Add the -z option to the tar command to fix this.

Signed-off-by: Stijn Tintel <[email protected]>
Stijn Tintel 6 년 전
부모
커밋
26fcc937f7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      target/linux/brcm2708/base-files/lib/upgrade/platform.sh

+ 1 - 1
target/linux/brcm2708/base-files/lib/upgrade/platform.sh

@@ -97,7 +97,7 @@ platform_copy_config() {
 		mkdir -p /boot
 		[ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot
 		cp -af "$CONF_TAR" /boot/
-		tar -C / -xvf "$CONF_TAR" boot/config.txt
+		tar -C / -zxvf "$CONF_TAR" boot/config.txt
 		sync
 		unmount /boot
 	fi