mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
parent
de85522248
commit
5d68062f12
1 changed files with 3 additions and 7 deletions
|
|
@ -3,13 +3,9 @@
|
|||
# Copyright (C) 2014-2024 Firejail Authors
|
||||
# License GPL v2
|
||||
|
||||
TCFILE=""
|
||||
if [ -x "/usr/sbin/tc" ]; then
|
||||
TCFILE="/usr/sbin/tc"
|
||||
elif [ -x "/sbin/tc" ]; then
|
||||
TCFILE="/sbin/tc";
|
||||
else
|
||||
echo "Error: traffic control utility (tc) not found";
|
||||
TCFILE="$(PATH=/usr/sbin:/sbin:/run/current-system/sw/bin command -v tc)"
|
||||
if [ -z "$TCFILE" ]; then
|
||||
echo "Error: traffic control utility (tc) not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue