tests/gnrc_dhcpv6_client: remove sudo requirement

This commit is contained in:
Martine Lenders 2021-09-01 11:54:51 +02:00
parent f253957f97
commit ced3268083
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80
3 changed files with 5 additions and 7 deletions

View File

@ -6,11 +6,6 @@
# Distributed under terms of the MIT license.
#
if [ "$EUID" -ne 0 ]; then
echo -e "\033[31;1mRequire root since kea uses some PID and Lock files in /var\033[0m" >&2
exit 1
fi
if ! command -v kea-dhcp6; then
echo -e "\033[31;1mCommand kea-dhcp6 required\033[0m" >&2
exit 1
@ -56,7 +51,8 @@ EOF
python3 -c "$convert_json"
fi
sleep 1 # sleep to let TAP become active
KEA_PIDFILE_DIR=${TMPDIR} KEA_LOCKFILE_DIR=${TMPDIR} \
cd "$TMPDIR" || exit 1
KEA_PIDFILE_DIR=. KEA_LOCKFILE_DIR=. \
kea-dhcp6 -p "$1" -c "$config"
}

View File

@ -4,8 +4,10 @@
"interfaces-config": {
"interfaces": [ "tapbr0" ]
},
"data-directory": ".",
"lease-database": {
"type": "memfile"
"type": "memfile",
"name": "kea-dhcp6.leases.csv"
},
"expired-leases-processing": {
"reclaim-timer-wait-time": 10,