-
Notifications
You must be signed in to change notification settings - Fork 0
Scripts: Custom Commands
system -> firmware customization -> custom commands -> network -> network initialization:
sleep 10
#SET Variables
CONFIG="/config/bin/icaconfig"
#Command for Set the param
SET=setparam
#Command for Config Reload
SETUP=killwait_postsetupd
#What param should be filled
CONFIG1=ica.pnlogin.desktop_folder_farm
#Param Value
VAL1=true
#Starting script
#add everthing together
$SET $CONFIG1 $VAL1
$SETUP
$CONFIG
#Put this line to custom commands, DNS Ready
sed -i 's/ SANAME=get network.scepclient.cert${INST}.subjectaltname
/SANAME="hostname
@domain.local"/' /usr/sbin/scep_mkrequest
LX V10 put under Firmware Customization -> Custom Commands -> Desktop -> Final Desktop Command, following commands
XDG_RUNTIME_DIR=/run/user/777 su -c "pacmd set-card-profile 0 output:hdmi-stereo" user;
XDG_RUNTIME_DIR=/run/user/777 su -c "pacmd set-card-profile 1 off" user;
amixer -D pulse sset Master 100%
LX5
#This line is for UD3-LX 50. It greps the available sink for HDMI sound and sets the default sink to it.
su user -c 'pacmd set-default-sink "$(pacmd list-sinks | grep hdmi | grep name: | grep -o -P "(?<=<).*(?=>)")"'
#This line is for UD6-LX 51. It sets the card profile to HDMI because there is no additinal sink for it.
su user -c "pacmd set-card-profile 0 output:hdmi-stereo-extra1"
#This line is for UD5-LX 40 which has also a differen sound profile for HDMI.
su user -c "pacmd set-card-profile 0 output:hdmi-stereo"