brintos

brintos / linux-shallow public Read only

0
0
Text · 393 B · f5335e8 Raw
17 lines · bash
1#!/bin/bash2 3TC="$1"; shift4ETH="$1"; shift5 6# The taprio architecture changes the admin schedule from a hrtimer and not7# from process context, so we need to wait in order to make sure that any8# schedule change actually took place.9while :; do10	has_admin="$($TC -j qdisc show dev $ETH root | jq '.[].options | has("admin")')"11	if [ "$has_admin" = "false" ]; then12		break;13	fi14 15	sleep 116done17