diff options
author | Ted Lemon <source@isc.org> | 2001-04-20 20:01:19 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2001-04-20 20:01:19 +0000 |
commit | 06fa897b5ec4d7b1836d0c747d9883851b570617 (patch) | |
tree | 7ab9848a82d976eeb6c59006b798d834dc677a48 /client/scripts/solaris | |
parent | 61aaca12d958c2d4f5f1ec5fd76de6d559ab2918 (diff) | |
download | isc-dhcp-06fa897b5ec4d7b1836d0c747d9883851b570617.tar.gz |
Use -f instead of -x to look for hooks.
Diffstat (limited to 'client/scripts/solaris')
-rwxr-xr-x | client/scripts/solaris | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/scripts/solaris b/client/scripts/solaris index 7ad7eaf8..21e83fa0 100755 --- a/client/scripts/solaris +++ b/client/scripts/solaris @@ -10,7 +10,7 @@ make_resolv_conf() { # Must be used on exit. Invokes the local dhcp client exit hooks, if any. exit_with_hooks() { exit_status=$1 - if [ -x /etc/dhclient-exit-hooks ]; then + if [ -f /etc/dhclient-exit-hooks ]; then . /etc/dhclient-exit-hooks fi # probably should do something with exit status of the local script @@ -18,7 +18,7 @@ exit_with_hooks() { } # Invoke the local dhcp client enter hooks, if they exist. -if [ -x /etc/dhclient-enter-hooks ]; then +if [ -f /etc/dhclient-enter-hooks ]; then exit_status=0 . /etc/dhclient-enter-hooks # allow the local script to abort processing of this state |