⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmounter.rc

📁 linux下的一个mount工具
💻 RC
字号:
#!/bin/sh### 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.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU Library General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.# $Id: mmounter.rc,v 1.1.1.1 2000/09/13 19:36:51 lyonel Exp $## chkconfig: 2345 31 89# description: mmounter (Magic(!) Mounter) is a small tool to implement#	under U*X a behaviour similar to MacOS handling of disks, floppies#	and CD-ROMs: whenever a device is introduced in the system, it is#	automatically mounted under a well-known location, identified by its#	label name.## Source function library.. /etc/rc.d/init.d/functions# See how we were called.case "$1" in  start)	echo -n "Starting mmounter: "	echo 3 4 1 7 > /proc/sys/kernel/printk	if test -r /var/run/mmounter.pid && kill -0 `cat /var/run/mmounter.pid`	then echo "already running according to /var/run/mmounter.pid. Not started."	else /usr/sbin/mmounter		echo mmounter	fi	touch /var/lock/subsys/mmounter	;;  stop)	echo -n "Stopping mmounter: "	[ -f /var/run/mmounter.pid ] || exit 0	kill -TERM `cat /var/run/mmounter.pid`	rm -f /var/run/mmounter.pid	rm -f /var/lock/subsys/mmounter	echo "mmounter"	;;  restart)	$0 stop	$0 start	;;  status)	status mmounter	;;  *)	echo "Usage: $0 {start|stop|restart|status}"	exit 1esacexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -