9
0
Fork 0
barebox/arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/automount-sd

14 lines
244 B
Bash

#!/bin/sh
if [ x${global.hostname} = xdev-rev-b -o x${global.hostname} = xdev-rev-c ];
then
global sd=0
else
global sd=1
fi
mkdir -p /mnt/sd
automount /mnt/sd 'mci${global.sd}.probe=1 && mount /dev/disk${global.sd}.0 /mnt/sd'
exit 0