SHARE
TWEET

lg app_dev

a guest Sep 20th, 2018 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/sh
  2.  
  3. #for app developer
  4. //USB_PATH=`mount | grep "^/dev/sd" | awk '{print $3}'`
  5. if [ -d /mnt/usb ]; then
  6.     echo "/mnt/usb exist"
  7. else
  8.    mkdir -p /mnt/usb
  9. fi
  10.  
  11. if [ -d /mnt/usb/DRIVE0 ]; then
  12.     echo "/mnt/sdpdata/SDP exist"
  13.     rm /mnt/usb/DRIVE0
  14. fi
  15.  
  16. ln -s /mnt/sda1  /mnt/usb/DRIVE0
  17.  
  18. #if [ -n "$USB_PATH" ]; then
  19. #    echo "USB Path: $USB_PATH"
  20. #    ln -s $USB_PATH  /mnt/usb/DRIVE0
  21. #else
  22. #    echo "USB Port Not Mount"
  23. #fi
  24.  
  25. #
  26. # end
  27. #
  28. sync
  29. exit 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top