1
0
Files
irix-657m-src/eoe/cmd/initpkg/mntproc.sh
2022-09-29 17:59:04 +03:00

22 lines
610 B
Bash

#! /sbin/sh
#ident "$Revision: 1.8 $"
#
# This script is responsible for mounting the /proc (/debug) file system.
# This is typically invoked by /etc/brc upon bootup.
#
# The /proc (ie /debug) directory has to be present since ps
# and killall depend upon this now.
if [ ! -d /debug -o ! -d /proc -o ! -l /debug ] ; then
/sbin/rm -rf /debug /proc > /dev/null 2>&1
mkdir /proc
ln -s proc /debug <&- > /dev/null 2>&1
fi
if /sbin/suattr -C CAP_MOUNT_MGT+ip -c "/sbin/mount -t proc /proc /proc"
then :
else
echo "Unable to mount /proc - ps(1) and killall(1M) will not work"
echo "Please see mntproc(1M)"
fi