Skip to content

Commit

Permalink
doc: openwrt: remove 'up' and 'down' options
Browse files Browse the repository at this point in the history
The way these options work is incompatible with USE_PROCD. Use on_up and
on_down instead, which are handled by fastd itself.
  • Loading branch information
neocturne committed Oct 10, 2020
1 parent 9cd08c1 commit 32faf8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions doc/examples/openwrt/fastd.config
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ config fastd sample_config
# Possible values: 1, 0, early, force (see fastd documentation for a description of the values)
# option drop_capabilities '1'

# Command to configure IP addresses etc. after the tunnel interface is up; $1 will be the interface name (optional)
# option up ''

# Command to execute before the tunnel interface is set down; $1 will be the interface name (optional)
# option down ''

# Commands executed by fastd ($INTERFACE can be used for the interface name; optional)
# All except on_pre_up and on_post_down may also be used in peer groups
# option on_pre_up ''
Expand Down
12 changes: 0 additions & 12 deletions doc/examples/openwrt/fastd.init
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,6 @@ start_instance() {
error "$s: startup failed"
return 1
fi

# Used for `up` script only - may be unset in multi-interface configs
config_get interface "$s" interface

config_get up "$s" up
[ -n "$up" ] && sh -c "$up" - "$interface"
}

stop_instance() {
Expand All @@ -333,12 +327,6 @@ stop_instance() {

SERVICE_PID_FILE="/var/run/fastd.$s.pid"

# Used for `down` script only - may be unset in multi-interface configs
config_get interface "$s" interface

config_get down "$s" down
[ -n "$down" ] && sh -c "$down" - "$interface"

service_stop "$FASTD_COMMAND"

rm -rf "$TMP_FASTD/fastd.$s"
Expand Down

0 comments on commit 32faf8d

Please sign in to comment.