ACC SHELL

Path : /usr/share/YaST2/modules/
File Upload :
Current File : //usr/share/YaST2/modules/Sysconfig.ybc

YaST bytecode 1.4.0	Sysconfig/
Sysconfig.ycpProgressReportSummary	DirectoryLabelIPStringService	Mode
configfiles	custom_files	variables
modified_variables		
node_commentsvariable_locations		parse_param
write_onlytree_contentactions	ConfirmActionsconfig_modifiedModifiedSetModifiedget_name_from_id		get_file_from_id		get_only_comment		Search	remove_whitespaces		get_metadata		parse_metadata			get_location_from_id		 get_description		!	set_value
		"modified	#get_modified	$get_all	%
get_all_names		&RegisterAgents'Read(ConfirmationDialog
		)StartCommand
				*Write+Set,Import-Export.Summary	

28:?GKUid	nid	input	params
show_progress'input	7input	Fcomment	id	  varid	!!ovariable		new_value	forceforce_change""varid	##
$$%%0&&I''_**++#settings,,Jsettings--X..v13UI	UserInput
OpenDialogCloseDialogChangeWidget

3SCRReadWriteDir	Execute
RegisterAgent	0	sysconfig3ProgressNew				NextStep	NextStageTitle	3ReportError	3Summary
NotConfigured		AddHeader			AddLine			3	Directorybindir	ydatadir	3LabelContinueButton	AbortButton	3IPCheck6	Check4	Check	3StringParseOptions		3Service3Modeconfig$
/etc/sysconfig/*/etc/sysconfig/network/ifcfg-*/etc/sysconfig/network/dhcp/etc/sysconfig/network/config+			
/descriptions/etc/sysconfig/powersave/*/etc/sysconfig/uml/*$$	$'
$*

$-
$0
$2
remove_whitespace	separator,unique$8$:	$=
$?$A%G-H||size
%K&L%Upos(W4X-Y$\
		findfirstof		$(^&&

4_-`			substring				findfirstof		$4c-d%npos(o4p-q$t
		findfirstof		$(v&&

4w-x			substring		+
4{-|%lines	ret	(||4-$
			splitstring			
$
,		foreachline	
com_line	$					regexpsub				
^#([^#].*)\1(4(		regexpmatch		^#[ 	]*$4&
+			

4&
+			+			

-
%found	files	search_varnamesearch_descriptionsearch_valuecase_insensitive
search_string	index$
	$
	SCR::Dir	.syseditor.section(4,ProgressBaridprogressSearching...	sysconfigsize
$
varname$
description$
value$
insensitive$
	search(
4,-
(
4&
		tolower		
$
,		foreachfile	
var_path	variables	(||		regexpmatch		\.bak$		regexpmatch		~$4,	
y2milestone	
Ignoring backup file %1/$	add	.syseditor.value$	SCR::Dir	,	
y2debug	
Searching in file %1,		foreachvar	
already_found$,	
y2debug	
Searching in variable %1(
4var2	$(
4&		tolower		(		issubstring		
4&
			add
+			+			$&(&&
4
read_value	$		SCR::Read	add		add	.syseditor.value(
4&		tolower		(		issubstring		
4&
			add
+			+			$&(&&
4read_comment	$		SCR::Read	add		add	.syseditor.value_comment(
4&		tolower		(		issubstring		
4&	
			add
+			+			$(4&
+
,idprogressValue
(4,,	
y2debug	
	Found: %1
-
%'removed_whitespaces	((4)-*$-
					regexpsub				"^[ 	]*(([^ 	]*[ 	]*[^ 	]+)*)[ 	]*$\1-/

%7lines	(8||49-:	$=
			splitstring			
->			filterline	
		regexpmatch		^##.*%Fret			metalines	joined_multilines		multiline		$G

$J
$K
	$L
,N	
y2debug	
metadata: %1
,Q		foreachmetaline	
(R			substring		-	size	\4S(T
4Uwithout_comment	$W					regexpsub				^##(.*)\1(Y4Z&[&^
			add
+			
&_
4bpart	$c			substring		-	size	(e
4fwithout_comment	$h					regexpsub				^##(.*)\1(j4k&l&q
+			
,v	
y2debug	
$metadata after multiline joining: %1
,y		foreachmetaline	
meta		colon_postag	val	
(|		regexpmatch		^###4}-~$					regexpsub				^##[ 	]*(.*)\1$		findfirstof		:$$(4&4&			substring		(	size	+4&			substring		+&&,	
y2milestone	
tag: %1 val: '%2'(4&
						add
4(!		regexpmatch		^#*$4,	
	y2warning	
Unknown metadata line: %1-
%-	% varname	fname	comment_path
value_pathcomment	
all_variables	used_comment	meta	template_only_comment		deflt	
	new_value	$
$
$
	add		add	.syseditor.value_comment

$
	add		add	.syseditor.value

$
		SCR::Read
$
	SCR::Dir		add	.syseditor.value
$

(&&&&
	size	
!		regexpmatch		
 ^/etc/sysconfig/network/ifcfg-.*4reversed	ifound,	
	y2warning	
"Comment for variable %1 is missing$	$$)&&size
4v	$
	(
4&4&			prepend&+(4v	&&
$,	
y2debug	
reversed: %1)&&size
4&	&
&
		SCR::Read	add		add	.syseditor.value_comment
&+,	
	y2warning	
,Variable: %1 Using comment from variable: %2
(&&

	
4lines	filtered	,	
y2debug	
$Reading first variable from the file,	
y2debug	
Whole comment: %1
$			splitstring			

$	(-size	4&		remove-size(			contains4
adding,	
y2milestone	
Header comment detected$&			filterline	(4&(4--&
			mergestring			
$#

$%
((		regexpmatch		
 ^/etc/sysconfig/network/ifcfg-.*4)template_comment	
template_meta		$*		SCR::Read	add		add	.sysconfig.network.template
value_comment
$+(-size4.,0				foreachkey	value	(1!haskey
42'3
&9
(;	size	
4<&=
+			

,@	
y2milestone	
Comment read from template: %1
,A	
y2milestone	
Meta read from template: %1$D
		
Default(F
	4Gparsed$H	
	'I
Default	,K	
y2debug	
Read default value: %1	$N


	(Q

4R'S
	new_value

'V
name
'W
file'X
location
'Y
comment
+			

	'Z
value	SCR::Read
(]size
4^'_
actions
-b
%o!descname	modif	old	curr_val		$p
 $q
(s
4t-u	not_found$x

	$y
	
value(|4}&~
haskey
Default	
Default$



(||
4,	
y2milestone	
$variable: %1 changed from: %2 to: %3
(&&
!4,	
y2debug	
+Variable %1 was reset to the original value&
					remove
4valid$(4type	$	
Typestring(||string		regexpmatch		^string\(.*\)$4&(yesno4&||yesno(boolean4&||truefalse(integer4&		regexpmatch		^-{0,1}[0-9]*$(		regexpmatch		^list\(.*\)$4listopt	parsed_opts$					regexpsub				^list\((.*)\)$\1$	&contains(		regexpmatch		&^integer\(-{0,1}[0-9]*:-{0,1}[0-9]*\)$4&		regexpmatch		^-{0,1}[0-9]*$(4min	max	min_intmax_intnew_int$					regexpsub				(^integer\((-{0,1}[0-9]*):-{0,1}[0-9]*\)$\1$					regexpsub				(^integer\(-{0,1}[0-9]*:(-{0,1}[0-9]*)\)$\1,	
y2milestone	
min: %1  max: %2$	tointeger$	tointeger$	tointeger,	
y2milestone	
min_int: %1  max_int: %2(&&4&&&(4&(4&4,	
	y2warning	
)empty integer range, assuming any integer(		regexpmatch		^regexp\(.*\)$4regex	$					regexpsub				^regexp\((.*)\)$\1&		regexpmatch		(ip4&(ip44&(ip64&4,	
	y2warning	
$Unknown data type %1 for variable %2
(&&4-	not_valid4'
-ok-ok%"-haskey
%
#ret	$	,				foreachvarid		new_value	


&			add
-%$ret	$!	,#				foreachvarid		new_value	

&%			add
-)%0%ret		$2
,4				foreachvarid		new_value	

name	$6
(8haskey49&:						add			add		
4=&>						add
-C%I&files	tmpdir	agentdef	tmp	$J
$K		SCR::Read.target.tmpdir(M||4N,O	

y2security	
Using /tmp directory !&P/tmp$T+					
sformat		
#.syseditor

`ag_ini(`IniAgent( %1,
		SCR::Read.target.string+			/sysedit.agent$U+			/sysconfig-agent.scr,W
SCR::Write.target.string,X	SCR::RegisterAgent	
.syseditor%_'files	tmpdir	agentdef	tmp	param	
parsed_outputredefined_vars$c
$e		SCR::Read.target.tmpdir(f||4g,h	

y2security	
Using /tmp directory !&i/tmp,m&$p+					
sformat		
Y.sysconfig.network.template,

`ag_ini(`IniAgent("/etc/sysconfig/network/ifcfg.template"
,		SCR::Read.target.string+			/sysedit.agent$q+			/sysconfig-template-agent.scr,s
SCR::Write.target.string,t	SCR::RegisterAgent	.sysconfig.network.template,x	
y2milestone	
Registered config files: %1	SCR::Dir	.syseditor.section${,|		foreachpar	
&|+			+			+			'
' ,SCR::Execute.target.bash+			+			+			+			+			/parse_configs.pl > /treedef.ycp$	SCR::Read.target.ycp+			/treedef.ycp&	&
&
$
(size4,	
	y2warning	
Redefined variables: %1&
-%(message	command	ret
,
opt	decoratedVBoxLabel	size	Label+				Command: 	sysconfigEmptyVSpacing0.5HBox
PushButtonidcont
PushButtonidskipS&kip	sysconfig
PushButtonidabort$
)&&&&
cont
skip
abort4&

(
close4&
abort,-
%)
start_command	label	error	confirm	
confirmactionexit(	size	4-success,(4input
$((cont4-,	
y2milestone	
Starting: %1$
SCR::Execute.target.bash+			 > /dev/null 2> /dev/null,	
y2milestone	

Result: %1
(
4,-failed-success%*

Configmodules		Restarted	Reloaded	Commands	CompleteSuSEconfigabortSuSEconfigName	caption	steps	ret$
$
$
$
$$$
SuSEconfig,				foreachvid	new_val	


presave	(4-$	
Pre(
&&	size	4confirm	label	error	precommandresult
$A command will be executed	sysconfig$
		
sformat		
Starting command: %1...	sysconfig$		
sformat		
Command %1 failed	sysconfig$)(abort4&(failed4'

Cmd(&&successskip4,	
y2error	
,Unknown return value from StartCommand(): %1(%4&-',*				foreachvid	new_val	


activate	restart_service	reload_service	
config_module	bash_command	$,

$.	Rest$/	Reld$0	Cfg$1	Cmd(3&&&&&&&&&&!44&649(:&&	size	4;parsed	$<	,=		foreachs	'?(D&&	size	4Eparsed	$F	,G		foreachs	'I(N&&	size	4Oparsed	$P	,Q		foreachs	'S(X&&	size	4Y'Z$`Saving sysconfig Configuration	sysconfig$c++++++size
sizesizesizesize,f Write the new settings	sysconfigActivate the changes	sysconfig,o$q	,t				foreachvid	new_val	


file	name	
value_pathwritten$v
$w
$x	add		add	.syseditor.value$z
SCR::Write
({4|,~		
sformat		
)Saving variable %1 to the file %2 failed.	sysconfig&	,		
sformat		
Saving variable %1...	sysconfig,,Saving changes to the files...	sysconfig,
SCR::Write
.syseditor,,(4
start_command	confirm	label	error	$
/sbin/SuSEconfig$
*All configuration scripts will be started.	sysconfig$
!Starting configuration scripts...	sysconfig$
Configuration script failed.	sysconfig,()



abort4-(size4,		foreach
modulename	dummy
start_command	confirm	label	error	(-$		
sformat		
/sbin/SuSEconfig --module %1$		
sformat		
(Configuration module %1 will be started.	sysconfig$		
sformat		
#Starting configuration module %1...	sysconfig$		
sformat		
Configuration module %1 failed.	sysconfig,()abort4&(-(size4,		foreachservicename	dummy
check_command	result(-$		
sformat		
/etc/init.d/%1 status$SCR::Execute.target.bash,	
y2milestone	
%1 service status: %2(4
start_command	confirm	label	error	$		
sformat		
/etc/init.d/%1 reload$		
sformat		
Service %1 will be reloaded	sysconfig$		
sformat		
Reloading service %1...	sysconfig$		
sformat		
Reload of the service %1 failed	sysconfig,()abort4&(-(size4,		foreachservicename	dummy
check_command	result$		
sformat		
/etc/init.d/%1 status$SCR::Execute.target.bash,	
y2milestone	
%1 service status: %2,(4
start_command	confirm	label	error	$		
sformat		
/etc/init.d/%1 restart$		
sformat		
Service %1 will be restarted	sysconfig$		
sformat		
Restarting service %1...	sysconfig$		
sformat		
 Restart of the service %1 failed	sysconfig()abort4&(size4,		foreachcmd	dummy,	
y2milestone	
Command: %1,(	size	4confirm	label	error	$A command will be executed	sysconfig$		
sformat		
Starting command: %1...	sysconfig$		
sformat		
Command %1 failed	sysconfig(	)abort4
&(-,,Finished	sysconfig,-	%#+($4%&&

&'
,*foreachsettingn	f	v	key	$,	
sysconfig_key$-	sysconfig_path$.	sysconfig_value(1		findfirstof		/42&3		
sformat		
/etc/sysconfig/%1$6		
sformat		
%1$%2&8
						add
(;!contains4<&=add%J,
settings_maps$K
,M+
-P%X-ret$[	(]size
4^,_				foreachvarid	val	
n	f	m$a$b$d
sysconfig_keysysconfig_pathsysconfig_value&jadd-o%v.summary	$xConfiguration Summary	sysconfig,z	
y2milestone	
Summary: %1
(|size
4},~				foreachvarid	newval	
varnam	filename	$$&		
sformat		
%1="%2" (%3)4&-

ACC SHELL 2018