loadsd.sh

来自「公关系统服务器后台程序」· Shell 代码 · 共 62 行

SH
62
字号
#!/bin/shlocalIp=`ifconfig eth0 |grep Bcast |cut -d':' -f2 |cut -d' ' -f1`if test -f /media/vod/script/server.state ; then	alone=`cat /media/vod/script/server.state`else	alone=2fiif test "$alone" = "1" ; then	serverIp=`echo $localIp |cut -d'.' -f1-3`.254else	oddaya $localIp	if test $? = 1 ; then		serverIp=192.168.0.254		else		serverIp=192.168.0.253	fifiif test -d /media/game/hda ; then	mount -t nfs $serverIp:/media/game/hda /media/game/hda	if test $? = 0 ; then		echo "connect remote vod server's game"	else		echo '不能访问第一块硬盘!' >> /tmp/login.error	fifiif test -d /media/game/hdb ; then	mount -t nfs $serverIp:/media/game/hdb /media/game/hdb	if test $? = 0 ; then		echo "connect remote vod server's game"	else		echo '不能访问第一块硬盘!' >> /tmp/login.error	fifiif test -d /media/game/hdc ; then	mount -t nfs $serverIp:/media/game/hdc /media/game/hdc	if test $? = 0 ; then		echo "connect remote vod server's game"	else		echo '不能访问第一块硬盘!' >> /tmp/login.error	fifi	if test -d /media/game/hdd ; then	mount -t nfs $serverIp:/media/game/hdd /media/game/hdd	if test $? = 0 ; then		echo "connect remote vod server's game"	else		echo '不能访问第一块硬盘!' >> /tmp/login.error	fifiunset ipaddrunset ipserver

⌨️ 快捷键说明

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