summaryrefslogtreecommitdiffstats
path: root/etc/rc.nanobsd_switch_boot_slice
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-12-02 11:33:21 +0100
committerErmal LUÇI <eri@pfsense.org>2014-12-02 11:33:21 +0100
commit9ea554ee5cb25ea3bf5bb6bf7997c6c7379ce349 (patch)
treec87cb456a89654963038fa310d61362369610093 /etc/rc.nanobsd_switch_boot_slice
parent8ad1ee636afe18a52b717db6b7112b26b7ebeed9 (diff)
downloadpfsense-9ea554ee5cb25ea3bf5bb6bf7997c6c7379ce349.zip
pfsense-9ea554ee5cb25ea3bf5bb6bf7997c6c7379ce349.tar.gz
Remove exit from as much as possible backend code
Diffstat (limited to 'etc/rc.nanobsd_switch_boot_slice')
-rwxr-xr-xetc/rc.nanobsd_switch_boot_slice4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.nanobsd_switch_boot_slice b/etc/rc.nanobsd_switch_boot_slice
index ccbed9c..fa68a42 100755
--- a/etc/rc.nanobsd_switch_boot_slice
+++ b/etc/rc.nanobsd_switch_boot_slice
@@ -12,7 +12,7 @@ nanobsd_detect_slice_info();
if ($g['platform'] != "nanobsd") {
echo "This script can only be used on NanoBSD (embedded) images.\n";
- exit(1);
+ return 1;
}
echo "Boot slice : {$BOOTFLASH} ({$BOOT_DEVICE})\n";
@@ -24,4 +24,4 @@ echo "Done.\n\n";
nanobsd_detect_slice_info();
echo "Boot slice : {$BOOTFLASH} ({$BOOT_DEVICE})\n";
echo "Active slice: {$ACTIVE_SLICE}\n\n";
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud