Skip to content

Scripts: Custom Commands

Christian T. Drieling edited this page Mar 30, 2018 · 35 revisions

IGEL OS

let network sleep for 10 seconds during boot

system -> firmware customization -> custom commands -> network -> network initialization:

sleep 10

This will set an IGEL Registry Parameter and reload the Config

#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

Use "E-Mail" as CommonName/SubjectAltName but fill it with DNS Name

#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

Default Audio Output to HDMI or DP:

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"