obouspa: Only set up .profile once.

This commit is contained in:
Jonas Höglund 2020-01-27 13:55:40 +01:00
parent 6223a63efe
commit b61bc3cd02

View file

@ -188,7 +188,8 @@ configure_obuspa() {
export USP_BOARD_IFNAME=${l3device}
# Set this variable for root user
echo "export USP_BOARD_IFNAME=${l3device}">>/root/.profile
grep -q USP_BOARD_IFNAME /root/.profile || \
echo "export USP_BOARD_IFNAME=${l3device}" >> /root/.profile
[ -f $cert ] && certificate=$cert