Commit 020d7f91 authored by Franco Fichtner's avatar Franco Fichtner

rc: remove atadile usage, dates back to being hip in 2008-2012

(cherry picked from commit 117c292e)
parent 4696eda3
...@@ -56,7 +56,6 @@ CORE_MAINTAINER?= franco@opnsense.org ...@@ -56,7 +56,6 @@ CORE_MAINTAINER?= franco@opnsense.org
CORE_WWW?= https://opnsense.org/ CORE_WWW?= https://opnsense.org/
CORE_MESSAGE?= ACME delivery for the crafty coyote! CORE_MESSAGE?= ACME delivery for the crafty coyote!
CORE_DEPENDS?= apinger \ CORE_DEPENDS?= apinger \
ataidle \
beep \ beep \
bind910 \ bind910 \
bsdinstaller \ bsdinstaller \
......
...@@ -88,21 +88,6 @@ if [ ! -f /usr/local/openssl/openssl.cnf ]; then ...@@ -88,21 +88,6 @@ if [ ! -f /usr/local/openssl/openssl.cnf ]; then
echo "done." echo "done."
fi fi
# Disable APM on ATA drives. Leaving this on will kill
# drives long-term, especially laptop drives, by generating
# excessive load cycles.
ATAIDLE=/usr/local/sbin/ataidle
for i in /dev/ad?; do
if [ ! -e ${i} ]; then
continue;
fi
SUPPORTED=`${ATAIDLE} ${i} | grep "APM Supported" | awk '{print $3;}'`
if [ "${SUPPORTED}" = "yes" ] ; then
echo Disabling APM on $i
${ATAIDLE} -P 0 ${i}
fi
done
#Eject CD devices on 3G modems #Eject CD devices on 3G modems
MANUFACTURER="huawei|zte" MANUFACTURER="huawei|zte"
CDDEVICE=`dmesg |egrep -ie "($MANUFACTURER)" | awk -F: '/cd/ {print $1}'` CDDEVICE=`dmesg |egrep -ie "($MANUFACTURER)" | awk -F: '/cd/ {print $1}'`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment