Permalink
Browse files

Fixed internal usb mounting on some devices

  • Loading branch information...
1 parent d703b6f commit 96ea7af582ef4990680fd78c83964b02252ac00a @bmcdorman bmcdorman committed Dec 22, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 cbcui/src/About.cpp
  2. +2 −2 filesystem/ext2/files/usercode/mount-usb
View
@@ -1,4 +1,4 @@
-/**************************************************************************
+ /**************************************************************************
* Copyright 2008,2009 KISS Institute for Practical Robotics *
* *
* This file is part of CBC Firmware. *
@@ -1,7 +1,7 @@
#!/bin/sh
# get the device the internal usb drive is mounted on
-INTUSB=`ls -l /dev/disk/by-label/rfs_boot | awk '{print $11}'`
+INTUSB=`ls -l /dev/disk/by-label/kissys | awk '{print $11}' | sed 's/[0-9]*//g'`
INTUSB=${INTUSB#../../}
# make sure there is an argument containing a mount path
@@ -25,7 +25,7 @@ USBFOLDER=$1
for dev in sda sdb sdc sdd;
do
# ignore the internal usb device
- if [ "${INTUSB}" = "${dev}1" ]; then
+ if [ "${INTUSB}1" = "${dev}1" ]; then
continue
fi

0 comments on commit 96ea7af

Please sign in to comment.