#!/bin/sh #---------------------------------------------------------------------------- # /etc/init.d/mountvirtfs - initial boot script # # Creation : 2015-06-13 hbfl # Last Update: $Id$ # # Copyright (c) 2015-@@YEAR@@ the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # mount virtdevices, e.g. /proc #---------------------------------------------------------------------------- lsb=false if ${lsb} then # read init-functions . /lib/lsb/init-functions else # read functions . /etc/init.d/functions fi # --------------------------------------------------------------------------- # usage # --------------------------------------------------------------------------- usage() { cat </run/noudev else #this has only effect with udev and devtmpfs if ! /usr/bin/mountpoint -q /dev then if ${lsb} then log_info_msg2 " ${INFO}/dev" else boot_mesg " * Mounting virtual file systems: ${INFO}/dev" fi /usr/bin/mount -o mode=0755,nosuid /dev || failed=1 evaluate_retval fi /usr/bin/ln -sfn /run/shm /dev/shm fi (exit ${failed:-0}) evaluate_retval exit ${failed:-0} } # --------------------------------------------------------------------------- # main # --------------------------------------------------------------------------- main() { while [ ${#} -gt 0 ] do case "${1}" in -q|--quiet) _quiet=true shift ;; *) _action=${1} shift ;; esac done case "${_action}" in start) start ;; *) usage exit 1 ;; esac exit 0 } # --------------------------------------------------------------------------- # call function main # --------------------------------------------------------------------------- main "${@}" # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------