#!/bin/sh
# Copyright © 2013-2016 Valve Corporation
# Copyright © 2017-2026 Collabora Ltd.
# SPDX-License-Identifier: MIT

set -eux

for bin in \
    dos2unix \
    ifconfig \
    ip \
    nc \
    ping \
    ping6 \
    route \
    telnet \
    traceroute \
    traceroute6 \
    unix2dos \
    vi \
    xxd \
; do
    if [ -e /bin/busybox ] && ! [ -e "/bin/$bin" ] && ! [ -e "/usr/bin/$bin" ]; then
        ln -fnsv busybox "/bin/$bin"
    fi
done
