mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
rc: remove 3g modem cdrom eject
Not explained why added in 2012 and never touched since. Also only works on one device.
This commit is contained in:
parent
117c292ee8
commit
f032e08896
@ -88,13 +88,6 @@ if [ ! -f /usr/local/openssl/openssl.cnf ]; then
|
||||
echo "done."
|
||||
fi
|
||||
|
||||
#Eject CD devices on 3G modems
|
||||
MANUFACTURER="huawei|zte"
|
||||
CDDEVICE=`dmesg |egrep -ie "($MANUFACTURER)" | awk -F: '/cd/ {print $1}'`
|
||||
if [ "$CDDEVICE" != "" ]; then
|
||||
cdcontrol -f /dev/"$CDDEVICE" eject
|
||||
fi
|
||||
|
||||
# Enable console output if its muted.
|
||||
/sbin/conscontrol mute off >/dev/null
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user