Skip to content

Commit

Permalink
added tupport to 10.4-RELEASE; if there's no private interface, now i…
Browse files Browse the repository at this point in the history
…t says 'DEACTIVATED'; fancy.
  • Loading branch information
egypcio committed Nov 1, 2017
1 parent ec8486f commit 3b14f6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

DigitalOcean's Unofficial/Experimental rc Script

1. Create a FreeBSD Droplet (10.3, 11.0, or 11.1; UFS or ZFS. It doesn't matter);
1. Create a FreeBSD Droplet (10.3, 10.4, 11.0, or 11.1; UFS or ZFS. It doesn't matter);
2. Run the steps below in your brand new FreeBSD Droplet;

```
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if ((${GREP} zfs /boot/loader.conf*) && (${GREP} zroot /boot/loader.conf*)); the
zfs destroy -vr zroot/usr/src
fi

if ((/bin/freebsd-version | ${GREP} 10.3)); then
if ((/bin/freebsd-version | ${GREP} ^10)); then
patch -p0 /etc/defaults/rc.conf < ${BASE_DIR}/etc/defaults/rc.conf_patch
fi

Expand Down
2 changes: 2 additions & 0 deletions etc/rc.d/digitalocean
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ digitalocean_info()
DROPLET_PRIVATE_IP4_ADDR=$(${fetch}/interfaces/private/0/ipv4/address)
DROPLET_PRIVATE_IP4_MASK=$(${fetch}/interfaces/private/0/ipv4/netmask)
echo " inet" ${DROPLET_PRIVATE_IP4_ADDR} "netmask" ${DROPLET_PRIVATE_IP4_MASK}
else
echo " DEACTIVATED"
fi
echo "----------------------------------------------------------------------"
echo "Droplet's Gateways"
Expand Down

0 comments on commit 3b14f6e

Please sign in to comment.