Skip to content

Commit c45fa21

Browse files
committed
[DeviceDrivers] mount procfs when enable procfs
1 parent 9464fe1 commit c45fa21

File tree

1 file changed

+5
-0
lines changed
  • components/drivers/core

1 file changed

+5
-0
lines changed

components/drivers/core/mnt.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ static int fstab_mnt_init(void)
158158
msh_exec_script("fstab.sh", 16);
159159
#endif
160160

161+
#ifdef RT_USING_DFS_PROCFS
162+
mkdir("/proc", 0755);
163+
dfs_mount(RT_NULL, "/proc", "procfs", 0, RT_NULL);
164+
#endif
165+
161166
LOG_I("File system initialization done");
162167

163168
return 0;

0 commit comments

Comments
 (0)