| 1 | #!/bin/bash |
| 2 | # Author: Steven Shiau <steven _at_ clonezilla org> |
| 3 | # License: GPL |
| 4 | # This file should be in /usr/bin/, not in /usr/share/drbl, so drblpush can call it in the beginning. |
| 5 | |
| 6 | export LC_ALL=C |
| 7 | # Source DRBL setting |
| 8 | DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}" |
| 9 | . /etc/drbl/drbl.conf |
| 10 | wanted=$1 |
| 11 | |
| 12 | eval return_var=\$$wanted |
| 13 | [ -n "$return_var" ] && echo $return_var |