]> Pileus Git - ~andy/csm213a-hw/blobdiff - hw2/install.sh
Import testing code and update makefiles
[~andy/csm213a-hw] / hw2 / install.sh
index f00994e4831e168b35bbc507b34a3a96274216f0..8d16c2e9131b71dcbcaf2ea69772ac8c8d281f52 100755 (executable)
@@ -21,7 +21,11 @@ if [ -z "$1" ] || [ "$1" = "-h" ]; then
        exit 0
 fi
 
-install "$1" /dev/sdb /mnt/mbed1 &
-install "$1" /dev/sdc /mnt/mbed2 &
+if [ "$2" ]; then
+       install "$1" "$2" "$3"  &
+else
+       install "$1" /dev/sdb /mnt/mbed1 &
+       install "$1" /dev/sdc /mnt/mbed2 &
+fi
 
 wait