OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 24... Line 24...
24 our_param=$(echo ${cfg_opt%%=*}) 24 our_param=$(echo ${cfg_opt%%=*})
25 [ "$param" = "$our_param" ] && echo ${cfg_opt##*=} && break 25 [ "$param" = "$our_param" ] && echo ${cfg_opt##*=} && break
26 done 26 done
27 } 27 }
Line -... Line 28...
-   28  
-   29 # make sure we got uboot-envtools and fw_env.config copied over to the ramfs
-   30 # create /var/lock for the lock "fw_setenv.lock" of fw_setenv
-   31 platform_add_ramfs_ubootenv()
-   32 {
-   33 [ -e /usr/sbin/fw_printenv ] && install_bin /usr/sbin/fw_printenv /usr/sbin/fw_setenv
-   34 [ -e /etc/fw_env.config ] && install_file /etc/fw_env.config
-   35 mkdir -p $RAM_ROOT/var/lock
-   36 }
-   37 append sysupgrade_pre_upgrade platform_add_ramfs_ubootenv
28   38  
29 platform_check_image_target_openmesh() 39 platform_check_image_target_openmesh()
30 { 40 {
Line 31... Line 41...
31 img_board_target="$1" 41 img_board_target="$1"
Line 222... Line 232...
222 printf "vmlinux_checksum %s\n" $kernel_md5 >> $uboot_env_upgrade 232 printf "vmlinux_checksum %s\n" $kernel_md5 >> $uboot_env_upgrade
223 printf "rootfs_start_addr 0x%x\n" $(($kernel_start_addr + $kernel_bsize)) >> $uboot_env_upgrade 233 printf "rootfs_start_addr 0x%x\n" $(($kernel_start_addr + $kernel_bsize)) >> $uboot_env_upgrade
224 printf "rootfs_size %s\n" $rootfs_checksize >> $uboot_env_upgrade 234 printf "rootfs_size %s\n" $rootfs_checksize >> $uboot_env_upgrade
225 printf "rootfs_checksum %s\n" $rootfs_md5 >> $uboot_env_upgrade 235 printf "rootfs_checksum %s\n" $rootfs_md5 >> $uboot_env_upgrade
Line 226... Line -...
226   -  
227 mkdir -p /var/lock 236  
228 fw_setenv -s $uboot_env_upgrade || { 237 fw_setenv -s $uboot_env_upgrade || {
229 echo "failed to update U-Boot environment" 238 echo "failed to update U-Boot environment"
230 return 1 239 return 1
231 } 240 }