📄 loadsd.sh
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -