#!/bin/sh NAME=ntpdCOMMAND=/etc/init.d/$NAME [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && { $COMMAND enabled && { $COMMAND restart }}