1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash args=`getopt rmvs $*` set -- $args for i do if [ "$i" == "-v" ]; then /bin/uname-real -v fi if [ "$i" == "-r" ]; then echo "4.4.16-v7+" fi if [ "$i" == "-m" ]; then echo "armv7l" fi if [ "$i" == "-s" ]; then echo "Linux" fi done