blob: eec9c29f3db9129fcd9219a4572ec5caa1d198f1
1 | #include <errno.h> |
2 | #include <stdio.h> |
3 | #include <string.h> |
4 | #include <sys/stat.h> |
5 | #include <unistd.h> |
6 | |
7 | #include "ubootenv/Ubootenv.h" |
8 | #include "SysWrite.h" |
9 | #include "DisplayMode.h" |
10 | |
11 | int set_display_mode(const char *path) |
12 | { |
13 | Ubootenv *pUbootenv = new Ubootenv(); |
14 | SysWrite *pSysWrite = new SysWrite(); |
15 | |
16 | DisplayMode displayMode(path, pUbootenv); |
17 | //setBootEnv |
18 | //displayMode.setBootEnv("upgrade_step", "1"); |
19 | pUbootenv->updateValue("upgrade_step", "1"); |
20 | pSysWrite->setProperty(PROP_FS_MODE, "recovery"); |
21 | displayMode.init(); |
22 | |
23 | return 0; |
24 | } |