From 8961a82f09a19bb65866ac33c1c95d7d0b7edcac Mon Sep 17 00:00:00 2001 From: James Rayner Date: Wed, 13 Feb 2008 20:26:51 +1100 Subject: Catch invalid profiles FS9423 --- src/ethernet.subr | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ethernet.subr') diff --git a/src/ethernet.subr b/src/ethernet.subr index ca694b7..3f960d5 100644 --- a/src/ethernet.subr +++ b/src/ethernet.subr @@ -63,6 +63,10 @@ ethernet_up() { fi fi ;; + *) + err_append "Profile error: IP must be either 'dhcp' or 'static'" + return 1 + ;; esac # set the hostname -- cgit v1.2.3-24-g4f1b