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

📄 chg-null.sh

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 SH
字号:
#!@SHELL@ ## Exit Status:# 0 Alles Ok# 1 Illegal Request# 2 Fatal Error## try to hit all the possibilities hereprefix="@prefix@"exec_prefix="@exec_prefix@"sbindir="@sbindir@"amlibexecdir="@amlibexecdir@". "${amlibexecdir}/amanda-sh-lib.sh"debugdir=@AMANDA_DBGDIR@# add sbin and ucb dirsPATH="$PATH:/usr/sbin:/sbin:/usr/ucb"export PATHif [ -d "$debugdir" ]then	logfile=$debugdir/changer.debugelse	logfile=/dev/nullfiexec 2> $logfileset -xUSE_VERSION_SUFFIXES="@USE_VERSION_SUFFIXES@"if test "$USE_VERSION_SUFFIXES" = "yes"; then	SUF="-@VERSION@"else	SUF=fimyname=$0EGREP='@EGREP@'firstslot=1totalslots=200changerfile=`amgetconf$SUF changerfile`tapedev="null:/dev/xxx$$"cleanfile=$changerfile-cleanaccessfile=$changerfile-accessslotfile=$changerfile-slot[ ! -f $cleanfile ] && echo 0 > $cleanfile[ ! -f $accessfile ] && echo 0 > $accessfile[ ! -f $slotfile ] && echo $firstslot > $slotfilecleancount=`cat $cleanfile`accesscount=`cat $accessfile`slot=`cat $slotfile`rc=0case x$1 inx-slot)     #    # handle special slots...    #    case "$2" in    current)	newslot=$slot 		; load=true;;    next)	newslot=`expr $slot + 1`; load=true;;    advance)	newslot=`expr $slot + 1`; load=false;;    prev)	newslot=`expr $slot - 1`; load=true;;    first)	newslot=0		; load=true;;    last)	newslot=-1		; load=true;;    *)		newslot=$2		; load=true;;    esac    if [ 0 -gt $newslot ]    then	newslot=`expr $totalslots - 1`    fi    if [ $totalslots -le  $newslot ]    then	newslot=0    fi    echo $newslot > $changerfile-slot    slot=$newslot    echo $slot $tapedev    ;;x-info)    echo $slot $totalslots 1    ;;x-eject)    echo $slot $tapedev    ;;esacexit $rc

⌨️ 快捷键说明

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