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

📄 parport

📁 pcmcia source code
💻
字号:
#!/bin/sh## serial 1.7 2001/01/01 21:13:55 (David Hinds)## Initialize or shutdown a PCMCIA parallel device## The first argument should be either 'start' or 'stop'.  The second# argument is the base name for the device.## The script passes an extended device address to 'parallel.opts' in the# ADDRESS variable, to retrieve device-specific configuration options.# The address format is "scheme,socket,instance" where "scheme" is the# PCMCIA configuration scheme, "socket" is the socket number, and# "instance" is used to number multiple ports on a single card.  #if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi# Get device attributesget_info $DEVICE# Load site-specific settingsADDRESS="$SCHEME,$SOCKET,$INSTANCE". $0.optsLP="lp$MINOR"case "$ACTION" in'start')    [ -n "$VERBOSE" -a -n "$INFO" ] && echo "$INFO"    if [ ! -c /dev/$LP ] ; then	log mknod /dev/$LP c $MAJOR $MINOR    fi    if [ -n "$LINK" ] ; then	if [ -L $LINK ] ; then rm $LINK ; fi	log ln -s /dev/$LP $LINK    fi    if [ -n "$LP_OPTS" ] ; then	log tunelp /dev/$LP $LP_OPTS    fi    ;;'check')    is_true $NO_CHECK && exit 0    do_fuser -s /dev/$LP /dev/$LP $LINK && exit 1    ;;'cksum')    chk_simple "$NEW_SCHEME,$SOCKET,$INSTANCE" || exit 1    ;;    'stop')    do_fuser -k /dev/$LP $LINK > /dev/null    if [ -L "$LINK" ] ; then rm $LINK ; fi    ;;'suspend')    do_fuser -k -STOP /dev/$LP > /dev/null    ;;'resume')    if [ -n "$LP_OPTS" ] ; then	tunelp /dev/$LP $LP_OPTS    fi    do_fuser -k -CONT /dev/$LP $LINK > /dev/null    ;;*)    usage    ;;esacexit 0

⌨️ 快捷键说明

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