Created
December 15, 2014 21:21
-
-
Save mnaberez/fae2fcd5309900ef43b3 to your computer and use it in GitHub Desktop.
Put a 1571 into double-sided (1571) or single-sided (1541) mode using cbmctrl.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Put a 1571 into double-sided (1571) or single-sided (1541) mode | |
| # using cbmctrl. | |
| if [ $# -lt 1 ]; then | |
| echo "Usage: $0 <unit number> <1541|1571>" | |
| exit 2 | |
| fi | |
| if [ $# -lt 2 ] || [ $2 == 1571 ]; then | |
| echo "Setting unit $1 to double-sided (1571) mode" | |
| cbmctrl -p command $1 u0\>m1 | |
| else | |
| echo "Setting unit $1 to single-sided (1541) mode" | |
| cbmctrl -p command $1 u0\>m0 | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment