Commit c1e9c98e authored by Mick Michalski's avatar Mick Michalski
Browse files

Removed code for updating kernel

parent 8f6c8be9
......@@ -12,9 +12,6 @@ int main(void) {
char *devFs = getenv("DEVICE_FILESYSTEM");
char *devFsMain = getenv("DEVICE_FILESYSTEM_MAIN");
char *devFsAlt = getenv("DEVICE_FILESYSTEM_ALT");
char *devK = getenv("DEVICE_KERNEL");
char *devKMain = getenv("DEVICE_KERNEL_MAIN");
char *devKAlt = getenv("DEVICE_KERNEL_ALT");
printf("----- start swupdate-prepost-boot -----\n");
......@@ -81,16 +78,6 @@ int main(void) {
system(cmd); /* Create a new link to main fs partition */
}
if(buffer[2] == '1'){ /* The current kernel */
snprintf(cmd, 127, "ln -sf %s %s", devKMain, devK);
printf("Executing: %s\n", cmd);
system(cmd); /* Create a new link to alt kernel partition */
} else {
snprintf(cmd, 127, "ln -sf %s %s", devKAlt, devK);
printf("Executing: %s\n", cmd);
system(cmd); /* Create a new link to main kernel partition */
}
printf("----- end swupdate-prepost-boot -----\n");
return 0;
......
......@@ -4,10 +4,6 @@ export SURICATTA_ID="test-vista-"$(echo "$(cat /sys/fsl_otp/HW_OCOTP_GP36)" | cu
export DEVICE_SETTINGS="/dev/mtd0"
export DEVICE_KERNEL="/dev/mtd-k"
export DEVICE_KERNEL_MAIN="/dev/mtd1"
export DEVICE_KERNEL_ALT="/dev/mtd2"
export DEVICE_FILESYSTEM="/dev/dev-fs"
export DEVICE_FILESYSTEM_MAIN="/dev/mmcblk1p2"
export DEVICE_FILESYSTEM_ALT="/dev/mmcblk1p3"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment