From: David van Moolenbroek Date: Tue, 14 Sep 2010 21:27:31 +0000 (+0000) Subject: ProcFS integration X-Git-Tag: v3.2.0~878 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch10.html?a=commitdiff_plain;h=d269f5fb90ac50abc3e3e540e86f920507c5cd2d;p=minix.git ProcFS integration --- diff --git a/docs/UPDATING b/docs/UPDATING index 7f9d3cc0d..c5b3df162 100644 --- a/docs/UPDATING +++ b/docs/UPDATING @@ -1,3 +1,7 @@ +20100914: + mkdir /proc + chmod 555 /proc + 20100827: From now on, the rc scripts, recovery scripts and system.conf in /etc and /usr/etc are updated automatically by make world. If you want to diff --git a/etc/mtree/minix.tree b/etc/mtree/minix.tree index 6a19b7315..268748dd4 100644 --- a/etc/mtree/minix.tree +++ b/etc/mtree/minix.tree @@ -8,6 +8,7 @@ 755 root operator /boot 755 root operator /boot/image 555 root operator /mnt +555 root operator /proc 700 root operator /root 1777 root operator /tmp 755 root operator /usr diff --git a/etc/rc b/etc/rc index 3b6626280..8c5325717 100755 --- a/etc/rc +++ b/etc/rc @@ -192,6 +192,8 @@ Mount $usr /usr failed -- Single user." then mount $bin_img $home /home || echo "WARNING: couldn't mount $home on /home" fi + mount -t procfs none /proc || echo "WARNING: couldn't mount procfs" + # This file is necessary for above 'shutdown -C' check. # (Silence stderr in case of running from cd.) touch /usr/adm/wtmp 2>/dev/null diff --git a/include/minix/paths.h b/include/minix/paths.h index 9eeb29799..88a82efe2 100644 --- a/include/minix/paths.h +++ b/include/minix/paths.h @@ -23,4 +23,6 @@ #define _PATH_SYSTEM_CONF "/etc/system.conf" #define _PATH_SYSTEM_CONF_DIR "/etc/system.conf.d" +#define _PATH_PROC "/proc" + #endif