diff options
-rwxr-xr-x | utils/sb2-init | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/sb2-init b/utils/sb2-init index 1cf5533..39f97ee 100755 --- a/utils/sb2-init +++ b/utils/sb2-init @@ -3,6 +3,12 @@ # Licensed under GPL version 2 my_path=$_ +if [ $(basename $my_path) != $(basename $0) ]; then + my_path=$0 + if [ $(basename $my_path) = $my_path ]; then + my_path=$(which $my_path) + fi +fi function show_existing_config_info() { |