X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=include%2Fshell.sh;h=6ee0cf6030ac5e0a71d7be1c2438c58ee9724caf;hb=edda8ecd79b181e338e82331ecb45eaeff0f57af;hp=1e60692b97fffcc1864146345da6b761cbe6c3f7;hpb=387570cc06ab3aca5824f1856b50a5e3ae5c2dc7;p=openwrt%2Fopenwrt.git diff --git a/include/shell.sh b/include/shell.sh index 1e60692b97..6ee0cf6030 100644 --- a/include/shell.sh +++ b/include/shell.sh @@ -13,18 +13,3 @@ isset() { eval "var=\"\${$1}\"" [ -n "$var" ] } - -trapret() {( - local retvals="$1"; shift - local cmd="$1"; shift - for retval in $(echo $retvals); do - local trap_$retval=1 - done - "$cmd" "$@" || { - local retval="$?" - eval "trapped=\${trap_$retval}" - [ -n "$trapped" ] || { - return $retval - } - } -)}