Newer
Older
barebox / arch / arm / boards / crystalfontz-cfa10036 / env / init / automount
@Jean-Christophe PLAGNIOL-VILLARD Jean-Christophe PLAGNIOL-VILLARD on 4 Sep 2012 195 bytes command/mount: add autodetection support
#!/bin/sh

if [ "$1" = menu ]; then
	init-menu-add-entry "$0" "Automountpoints"
	exit
fi

mkdir -p /mnt/disk0.1
automount -d /mnt/disk0.1 '[ -e /dev/disk0.1 ] && mount /dev/disk0.1 /mnt/disk0.1'