mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
put alsa in read-only
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
da542cca6b
commit
3f7fdf0e4a
@ -7,5 +7,13 @@ sed -i '3iexport PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/b
|
||||
# Remove log daemon init scripts since they are loaded from inittab
|
||||
rm -f ${TARGET_DIR}/etc/init.d/S01syslogd ${TARGET_DIR}/etc/init.d/S02klogd
|
||||
|
||||
# Remove dhcp lib dir and link to /tmp
|
||||
rm -rf ${TARGET_DIR}/var/lib/dhcp/
|
||||
ln -s /tmp ${TARGET_DIR}/var/lib/dhcp
|
||||
|
||||
# Redirect drobear keys to /tmp
|
||||
rm -rf ${TARGET_DIR}/etc/dropbear
|
||||
ln -s /tmp ${TARGET_DIR}/etc/dropbear
|
||||
|
||||
# Change dropbear init sequence
|
||||
mv ${TARGET_DIR}/etc/init.d/S50dropbear ${TARGET_DIR}/etc/init.d/S42dropbear
|
||||
|
||||
@ -79,7 +79,7 @@ store_levels()
|
||||
CARD="$1"
|
||||
[ "$1" = all ] && CARD=""
|
||||
if MSG="$(alsactl -E HOME="$ALSACTLHOME" store $CARD 2>&1)" ; then
|
||||
sleep 1
|
||||
#sleep 1
|
||||
return 0
|
||||
else
|
||||
log_action_cont_msg "warning: 'alsactl store${CARD:+ $CARD}' failed with error message '$MSG'"
|
||||
@ -180,7 +180,9 @@ case "$1" in
|
||||
*) log_action_begin_msg "Stopping ALSA card ${TARGET_CARD}" ;;
|
||||
esac
|
||||
card_OK "$TARGET_CARD" || log_action_end_msg_and_exit "$( [ ! "$2" ] ; echo $? ; )" "none loaded"
|
||||
rw
|
||||
store_levels "$TARGET_CARD" || EXITSTATUS=1
|
||||
ro
|
||||
#mute_and_zero_levels "$TARGET_CARD" || EXITSTATUS=1
|
||||
log_action_end_msg_and_exit "$EXITSTATUS"
|
||||
;;
|
||||
|
||||
@ -7,11 +7,15 @@ sed -i '3iexport PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/b
|
||||
# Remove log daemon init scripts since they are loaded from inittab
|
||||
rm -f ${TARGET_DIR}/etc/init.d/S01syslogd ${TARGET_DIR}/etc/init.d/S02klogd
|
||||
|
||||
# Remove dhcp lib dir and link to /tmp
|
||||
rm -rf ${TARGET_DIR}/var/lib/dhcp/
|
||||
ln -s /tmp ${TARGET_DIR}/var/lib/dhcp
|
||||
|
||||
# Change dropbear init sequence
|
||||
mv ${TARGET_DIR}/etc/init.d/S50dropbear ${TARGET_DIR}/etc/init.d/S42dropbear
|
||||
|
||||
# Redirect drobear keys to /tmp
|
||||
rm ${TARGET_DIR}/etc/dropbear
|
||||
rm -rf ${TARGET_DIR}/etc/dropbear
|
||||
ln -s /tmp ${TARGET_DIR}/etc/dropbear
|
||||
|
||||
# Generate U-Boot environment
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user