[riot-notifications] [RIOT] native: unify and simplify usage of tapsetup script (#3182)

Ludwig Ortmann notifications at github.com
Sat Jun 13 15:21:58 CEST 2015


> +while true ; do
> +    case "$1" in
> +        -6)
> +            DEACTIVATE_IPV6=1
> +            shift ;;
> +        -b|--bridge)
> +            case "$2" in
> +                "")
> +                    usage
> +                    exit 2 ;;
> +                *)
> +                    BRNAME="$2"
> +                    shift 2 ;;
> +            esac ;;
> +        -c|--create)
> +            if [ COMMAND = "delete" ]; then

a check for a non-empty command would be safer

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3182/files#r32370373
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150613/338def8b/attachment.html>


More information about the notifications mailing list