#!/bin/sh # part of usb_modeswitch 2.5.2 device_in() { if [ ! -e /var/lib/usb_modeswitch/$1 ]; then return 0 fi while read line do if [ $(expr "$line" : "$2:$3") != 0 ]; then return 1 fi done >/dev/null fi fi exit 0 ;; esac IFS='/' read -r p1 p2 <