HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //usr/syno/lib/systemd/scripts/synoovs-vswitch.sh
#!/bin/bash

case $1 in
	start-pre)
		/usr/bin/ovs-vsctl --no-wait init
	;;

	start-post)
		threads=`ps -C ovs-vswitchd --no-headers | wc -l`
		retry=0
		while [ $threads -gt 1 -a $retry -lt 10 ]
		do
			echo "wait for parent to exit"
			retry=$(($retry+1))
			sleep 1
			threads=`ps -C ovs-vswitchd --no-headers | wc -l`
		done
	;;
esac

exit 0