#!/bin/sh /etc/rc.common

# After netifd has settled, so we are not fighting it over interface state
# during boot. Nothing here is on the critical boot path.
START=95
STOP=10
USE_PROCD=1

start_service() {
	procd_open_instance
	procd_set_param command /usr/sbin/eth-powersave
	procd_set_param respawn
	procd_set_param stdout 0
	procd_set_param stderr 1
	procd_close_instance
}

service_triggers() {
	procd_add_reload_trigger "ethpower"
}
