#!/bin/sh

# Source function library.
if [ -f /etc/init.d/functions ] ; then
  . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
  . /etc/rc.d/init.d/functions
else
  exit 0
fi

[ -d /proc ] || mkdir /proc
[ -d /sys ]  || mkdir /sys
[ -d /mnt ]  || mkdir /mnt

if [ "$1" = "start" -o "$1" = "restart" ]
then
    echo -n "Mounting /proc, /sys and /mnt "
    mount -n -t proc proc /proc
    mount -n -t sysfs sysfs /sys
    mount -t tmpfs tmpfs /mnt
    echo_success
    echo
fi
