mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-02 22:25:48 +00:00
To reduce duplicated code and simplified scripts introduce scylla_lib.sh for shellscripts which provides functions to classify distributions, and load all sysconfig files. This also fixes script bugs to misdetect Debian and RHEL. Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <1480667672-9453-2-git-send-email-syuu@scylladb.com>
11 lines
276 B
Bash
Executable File
11 lines
276 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
. /usr/lib/scylla/scylla_lib.sh
|
|
|
|
if [ "$NETWORK_MODE" = "virtio" ]; then
|
|
ip tuntap del mode tap dev $TAP
|
|
elif [ "$NETWORK_MODE" = "dpdk" ]; then
|
|
/usr/lib/scylla/dpdk_nic_bind.py -u $ETHPCIID
|
|
/usr/lib/scylla/dpdk_nic_bind.py -b $ETHDRV $ETHPCIID
|
|
fi
|