| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # Lifts a plugged in MTP device to user space and | 2 # Lifts a plugged in MTP device to user space and |
| 3 # optionally runs a client program. | 3 # optionally runs a client program. |
| 4 # Written by Linus Walleij 2006, based on the "usbcam" | 4 # Written by Linus Walleij 2006, based on the "usbcam" |
| 5 # script by Nalin Dahyabhai. | 5 # script by Nalin Dahyabhai. |
| 6 DEVICEOWNER=root | 6 DEVICEOWNER=root |
| 7 DEVICEPERMS=666 | 7 DEVICEPERMS=666 |
| 8 | 8 |
| 9 # Special quirk for SuSE systems using "resmgr" | 9 # Special quirk for SuSE systems using "resmgr" |
| 10 # (see http://rechner.lst.de/~okir/resmgr/) | 10 # (see http://rechner.lst.de/~okir/resmgr/) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 DEVICEPERMS="666" | 36 DEVICEPERMS="666" |
| 37 fi | 37 fi |
| 38 fi | 38 fi |
| 39 if [ -n "$DEVICEOWNER" ] | 39 if [ -n "$DEVICEOWNER" ] |
| 40 then | 40 then |
| 41 chmod 0000 "${DEVICE}" | 41 chmod 0000 "${DEVICE}" |
| 42 chown "${DEVICEOWNER}" "${DEVICE}" | 42 chown "${DEVICEOWNER}" "${DEVICE}" |
| 43 chmod "${DEVICEPERMS}" "${DEVICE}" | 43 chmod "${DEVICEPERMS}" "${DEVICE}" |
| 44 fi | 44 fi |
| 45 fi | 45 fi |
| OLD | NEW |