root/trunk/freewrt/scripts/which.mac

Revision 1686, 288 bytes (checked in by n0-1, 2 years ago)

merged from branches/common-adk 1310:1685

the following packages are not converted yet:
* alsa
* asterisk
* pmacct
* zaptel
* elinks
* libgd
* lua
* mypackage
* openser
* php*
* snort*
* tmsnc

additionally, freeradius doesn't compile.

happy fixing :P

Line 
1 #!/usr/bin/env bash
2 # $FreeWRT$
3 #-
4 # This file is part of the FreeWRT project. FreeWRT is copyrighted
5 # material, please see the LICENCE file in the top-level directory
6 # or at http://www.freewrt.org/licence for details.
7
8 X=$(/usr/bin/which "$@")
9
10 test -x "$X" || exit 1
11 echo "$X"
12 exit 0
Note: See TracBrowser for help on using the browser.