6relayd: Rewrite init-script logic