OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 95... | Line 95... | |||
95 | # Same as above /dev/sd[a|b]2 is root, so /boot is -1 |
95 | # Same as above /dev/sd[a|b]2 is root, so /boot is -1 |
|
96 | if export_partdevice partdev -1; then |
96 | if export_partdevice partdev -1; then |
|
97 | mkdir -p /boot |
97 | mkdir -p /boot |
|
98 | [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot |
98 | [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot |
|
99 | cp -af "$CONF_TAR" /boot/ |
99 | cp -af "$CONF_TAR" /boot/ |
|
100 | tar -C / -zxvf "$CONF_TAR" boot/config.txt |
100 | tar --directory / -xvf "$CONF_TAR" boot/config.txt |
|
101 | sync |
101 | sync |
|
102 | unmount /boot |
102 | unmount /boot |
|
103 | fi |
103 | fi |
|
104 | } |
104 | } |