Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
020d7f91
Commit
020d7f91
authored
Apr 10, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: remove atadile usage, dates back to being hip in 2008-2012
(cherry picked from commit
117c292e
)
parent
4696eda3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
Makefile
Makefile
+0
-1
rc
src/etc/rc
+0
-15
No files found.
Makefile
View file @
020d7f91
...
...
@@ -56,7 +56,6 @@ CORE_MAINTAINER?= franco@opnsense.org
CORE_WWW
?=
https://opnsense.org/
CORE_MESSAGE
?=
ACME delivery
for
the crafty coyote!
CORE_DEPENDS
?=
apinger
\
ataidle
\
beep
\
bind910
\
bsdinstaller
\
...
...
src/etc/rc
View file @
020d7f91
...
...
@@ -88,21 +88,6 @@ if [ ! -f /usr/local/openssl/openssl.cnf ]; then
echo
"done."
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
MANUFACTURER
=
"huawei|zte"
CDDEVICE
=
`
dmesg |egrep
-ie
"(
$MANUFACTURER
)"
|
awk
-F
:
'/cd/ {print $1}'
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment