mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-22 06:17:52 +00:00
19 lines
363 B
Plaintext
19 lines
363 B
Plaintext
|
#!/bin/sh
|
||
|
# Mount a USB device
|
||
|
die() { echo >&2 "!!!!! $@"; exit 1; }
|
||
|
|
||
|
if ! lsmod | grep -q ehci_hcd; then
|
||
|
insmod /lib/modules/ehci-hcd.ko \
|
||
|
|| die "ehci_hcd: module load failed"
|
||
|
fi
|
||
|
if ! lsmod | grep -q ehci_pci; then
|
||
|
insmod /lib/modules/ehci-pci.ko \
|
||
|
|| die "ehci_pci: module load failed"
|
||
|
fi
|
||
|
|
||
|
if [ ! -d /media ]; then
|
||
|
mkdir /media
|
||
|
fi
|
||
|
|
||
|
mount -o ro $1 /media
|