Skip to content

Commit

Permalink
EdgeOS: check if running on UBNT device and set CONFIG_BOOT_FILE acco…
Browse files Browse the repository at this point in the history
…rdingly.

EdgeOS has config.boot in /config, so we detect this and update the
CONFIG_BOOT_FILE variable.
  • Loading branch information
Borut Mrak committed May 19, 2014
1 parent 3401128 commit d5dd284
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vyatta-config-sync
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ TMP_LOCAL_TRANSFORMATIONS_FILE="${TMP_DIR}/local_transformations.sed"
STDOUT_DST="/tmp/vyatta-config-sync.out"
STDERR_DST="/tmp/vyatta-config-sync.err"

# Test for EdgeOS
if [ -f /usr/sbin/ubnt-hal ]; then
CONFIG_BOOT_FILE="/config/config.boot"
fi

# If your life suxx you have only one choise :)
function suicide() {
Expand Down

0 comments on commit d5dd284

Please sign in to comment.