mirror of
https://github.com/novatiq/packages.git
synced 2026-06-30 17:20:22 +01:00
c9ee50d190
- The old hotplug script caused long boot-times for r7800 and possibly others. The new script is now only triggered by iface changes for wan and lan interfaces. Signed-off-by: Christian Lachner <gladiac@gmail.com>
8 lines
166 B
Bash
8 lines
166 B
Bash
#!/bin/sh
|
|
|
|
[ "$INTERFACE" == "wan" ] || [ "$INTERFACE" == "lan" ] || return
|
|
[ "$ACTION" == "ifup" ] &&
|
|
/etc/init.d/haproxy enabled && \
|
|
/etc/init.d/haproxy start
|
|
|