mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 18:52:52 +01:00
[fix] Misc script convention changes
* Remove sudo from scripts that are already running as sudo
* Also remove sudo from several so scripts and add sudo check
* Remove .sh extension from user facing scripts
* Remove superfluous # characters from so scripts
* Rename scripts to follow so-{subject}-{verb} naming convention
* Add shebangs where missing
This commit is contained in:
9
setup/install_scripts/00-so-checksum-offload-disable
Normal file
9
setup/install_scripts/00-so-checksum-offload-disable
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$NM_DISPATCHER_ACTION" == "pre-up" ]; then
|
||||
if ["$DEVICE_IFACE" !== "$MAININT"]; then
|
||||
for i in rx tx sg tso ufo gso gro lro; do
|
||||
ethtool -K $DEVICE_IFACE $i off;
|
||||
done
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user