protocol_fetch() { mountmedia || true local FILE="${1#file://*}" if [ ! -e "$FILE" ]; then return 4 elif ! cp "$FILE" $2; then return 1 else return 0 fi }