ACC SHELL

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

YaST bytecode 1.4.0NetHwDetection=NetHwDetection.ycp	DirectoryPackageStringdescription	type	unique	hotplug	Requires		network/hardware.ycp
ArchConfirmMap
network/routines.ycpCallPopupProgressNetworkService
PackageSystemNetworkInterfacesNetmaskModeIPAbort	PollAbortReallyAbortReallyAbortCond
ScreenName	ProgressNextStage	ChangeWidgetIfExists
QueryWidgetIfExists
PackagesInstall
	 ChangedComment		!	BusyPopup	"BusyPopupClose#
list2items$hwlist2items%FinishPopup
			&
DriverType		'hasAnyValue	(	needHwcfg)getHardware	*
getIfcName		+DistinguishedName		,
DeviceName	-ControllerType	.ReadHardware	/validPrefixOrNetmask		0disableItemsIfNM1FindHardware2SelectHardwareMap3SelectHardware4result5running6tmpdir	7detection_modules	8StartEthInterface9Start:Stop;DuplicateIP	<	ResolveIP		
56789		;

	;44A55F99::;;ip	<<ip	E3SCRReadExecute3SCRReadExecute3UI	PollInput
OpenDialogCloseDialogChangeWidget

QueryWidget


BusyCursor
FakeUserInputWidgetExists
3SCRReadExecute0+network3-	Directorytmpdir	3.PackageInstalledAll	
InstallAll	
InstallKernel	3/String	CutBlanks		
FirstChunk			$5$6$7$8$9	1;network/hardware.ycp0network3Archs3903Confirm	Detection		3MapValues1network/routines.ycp0network3CallFunction	3Popup
YesNoHeadline		YesNo	ReallyAbort
AnyMessage		Warning	3Progress	NextStageTitle	3NetworkService	IsManaged3
PackageSystem3NetworkInterfacesdevice_type		3NetmaskCheck6	Check4	CheckPrefix4	3Modecommandlinenormal3IPCheck6	Check4	%!
	;(#-#-$abort-*%1
	;-2abort%9
	;-:%Fmodified
	;
	;-G||!%Rname	
	;
	;-R%Ztitle	
	;
	;,[
,\
%eidparam
value
	;
	;(f-,g,i	
y2debug	
Not changing: %1%sidparam
value
	;
	;(t--u,v	
y2debug	
Not changing: %1-w%packages	
	;text	ret
	;	(	-next,	
y2debug	
Checking packages: %1(-next$+			$These packages need to be installed:network<p>,		foreachl	
	;
	;&+					
sformat		
%1<br>,	
y2debug	
Installing packages: %1$)4
	;&(.(&&4
	;&.(!+			XThe required packages are not installed.
The configuration will be aborted.

Try again?
network
.-nextabort% modul	
	;ret	outdate	
	;$
# Changed by YaST2(&&&+			+			 module $SCR::Execute.target.bash_output/bin/date '+%x'$	stdout(&+			+			 -%!message	
	;
	;,,VBoxLabel%"
	;,%#lselected
	;itemsn
	;$	$,foreachi
	;
	;&additemid&+-%$lselected
	;nolink	itemsn
	;$	unpluggednetwork$	$,foreachi
	;hwname	label	num
	;$nameUnknownnetwork$+			link		
sformat		
 (%1)$num&additemid&+-%%modifiedhead	text	run	params
	;h	headst	textsret
	;(!-next$(||& Configuration Successfully Savednetwork$
	dns$DNS Configuration Successfully Savednetworkdsl$DSL Configuration Successfully Savednetworkhost&Hosts Configuration Successfully Savednetworkisdn%ISDN Configuration Successfully Savednetworklan-Network Card Configuration Successfully Savednetworkmodem&Modem Configuration Successfully Savednetworkproxy&Proxy Configuration Successfully Savednetworkprovider)Provider Configuration Successfully Savednetworkrouting(Routing Configuration Successfully Savednetwork&	$ $!mailConfigure mail now?network(%&&	('&)		
sformat		
Run configuration of %1?network$+(,4,
	;&-(/,/&2-4next%>&type	
	;drvtype	
	;$?(Ahsi&Bqeth(D||treth&Elcs(G||esconficon&Hctc-I%L'value	
	;
	;(M-M(N	size	-N-O%S(hw
	;need
	;$T(V'	modalias4V
	;(Wsizedrivers	,W	
y2milestone	
<there are more modules available for device, hwcfg is needed4X
	;,Y	
y2milestone	
=Just one autoloadable module available.No need to write hwcfg&Z(^!'	
driver_module4^
	;,_	
y2milestone	
built-in driver %1	driver&`-b%u)sysfs_id	Hw
	;hardware
	;$v
,wforeachhw_temp
	;
	;(x		
sformat		
/sys%1	sysfs_id&x-z%}*
devicename	
	;ifcfg	
interfacetype	
	;$~$(		contains	qethhsictclcsiucv4
	;,	

y2internal	
special device type %1,	
y2error	
 TODO: create ifcfg file for s3904
	;,	

y2internal	

usual type %1&		
sformat		
ifcfg-%1,	

y2internal	
interface configuration file %1-%+name	hwdevice
	;
	;(	sysfs_bus_id-		
sformat		
%1 (%2)	sysfs_bus_id-%,hwdevice
	;	delimiter	model	vendor	dev	
	;$ $$$('	device-	device&	model(&&-&	
sub_vendor&	
sub_device(||4
	;&	vendor&	device(-+			+			-%-hwdevice
	;subclass_id
	;	(	subclassModem-modem(	subclassISDN-isdn(	subclassDSL-dsl$sub_class_id(class_id4
	;(-eth(-tr(-fddi(-atm(-isdn(-ib(-myri(-wlan(-xp(-qeth(-hsi(-ctc(-lcs(-ficon(-escon(-iucv(-usb(4
	;,	
y2error	
#Unknown network controller type: %1,	
y2error	
;It's probably missing in hwinfo (NOT src/hd/hd.h:sc_net_if)-4
	;,	
y2error	
#Unknown network controller type: %1-(class_id4
	;(-ib(class_id4
	;(-modem(4
	;,	
y2error	
#Unknown network controller type: %1,	
y2error	
7It's probably missing in hwinfo (src/hd/hd.h:sc_net_if)-4
	;,	
y2error	
#Unknown network controller type: %1-(class_id4
	;,	
y2milestone	
CLASS 0x107(-lo(-eth(	-	tr(
-
fddi(-ctc(-iucv(
-
hsi(-qeth(-escon(	-myri(
-wlan(-xp(-usb(4
	;,	
y2error	
"Unknown network interface type: %1,	
y2error	
7It's probably missing in hwinfo (src/hd/hd.h:sc_net_if)-(-sit4
	;,	
y2error	
"Unknown network interface type: %1-(!class_id-"modem(#class_id-$isdn(%class_id-&dsl,)	
y2error	
Unknown controller type: %1-*%2.hwtype	
	;Hardwarenumpathsallcardshwtypes		hwstrings		hwstring	bms	broken_modules		found
i
	;$3	,5	
y2debug	
	hwtype=%1$7$8	$9	$;
dsl
.probe.dslisdn.probe.isdnmodem.probe.modemnetcard.probe.netcard$Bnetcard
Network CardsnetworkmodemModemsnetworkisdn
ISDN CardsnetworkdslDSL Devicesnetwork$NAll Network Devicesnetwork(Ohaskey&O	(P!	yast-lan-P	(Shaskey&T	SCR::Read(W||||all,Xmaplistv
	;

	;&Ymerge	SCR::Read4[
	;,\	
y2error	
unknown hwtype: %1-]	(`4`
	;,a	
y2error	
hardware detection failure&b	$g		SCR::Read.etc.install_inf.BrokenModules(h&h$i			splitstring			 ,lmaplistcard
	;oneresource
controller	card_ok
	;$m
$presource
$q-$r'sname,'ttype'uudi	udi'vsysfs_id	sysfs_id'wdev_name	dev_name'xrequiresrequires	'ymodalias	modalias'zunique	
unique_key'|driver	driver'num('name+	name(modem4speed
	;'device_name	dev_name'driversdrivers	$baudspeed(4
	;&,	
y2milestone	
7Driving faster than light is prohibited on this planet.'speed'init1	init_stringsinit1'init2	init_stringsinit2'pppd_options	pppd_optionoption(isdn4drivers
	;$isdn	'drivers'sel_drv'bus	bus'ioiostart'irqirqirq(dsl4driver_infotranslate_mode		m	
	;$dsl
$
capiadsl	capi-adslpppoepppoe$	mode'pppmode	(4drivershp	bus	
	;$filterd
	;drivers	module0brk
	;$modules	$		contains	(4
	;,	
y2milestone	
In BrokenModules, skipping: %1-!(	4
	;,	
y2milestone	
No good drivers found4drivermodule0
	;'drivers$
'activeactive$modules	'module	'options	$	hotplug(||pcmciacardbus'hotplugpcmcia(usb'hotplugusb$		bus_hwcfg	bus(PCI&pci(USB&usb(
Virtual IO&vio'bus'busid	sysfs_bus_id'mac	hwaddraddr'linklinkstate'wl_channelswlanchannels'wl_bitrateswlanbitrates'
wl_auth_modeswlan
auth_modes'wl_enc_modeswlan	enc_modes(&&	module
virtio_pci	dev_name4
	;&,	
y2milestone	
0Filtering out virtio device without device file.(&&	deviceIUCV	sysfs_bus_idnetiucv4
	;&,	
y2milestone	
1Filtering out iucv device different from netiucv.,	
y2debug	
found device: %1(4
	;'size&+4
	;,	
y2milestone	
Filtering out: %1$	$
,foreachh
	;
	;(	typewlan4
	;&	.	&
+
(
	4temp
	;$
'

'
'num'
num
,	
y2debug	
Hardware=%1-%/ip	mask	
	;
valid_mask
	;$(			substring		/&			substring		( &&||& (!&&&!,"	
	y2warning	
IP address %1 is not valid-#%-0items
show_popup
	;disable
	;$.(/&&4/
	;,0foreachw
	;
	;,1idEnabled(344
	;,5Network is currently controlled by NetworkManager and its settings 
cannot be edited by YaST.

To edit the settings, use NetworkManager connection editor, or
switch the network setup method to Traditional method with ifup.network,9&
IDglobal&;-<2network/hardware.ycp%1Hardwarewhich	;sel	;$
(!4!	;&"
($||size,%	
y2error	
#Item not found in Hardware: %1 (%2)size-'%02sel	;	;&2	name&3	typeeth&4	hotplug&7requires	&<			filterr		;		search		kernel,=	
y2milestone	
requires=%1&@-B%J3Hardwarewhich	;	;-K212NetHwDetection.ycp$A4
$F5$H6$J7	%Q8Hardwareneeded_modules	command	output	,S	
y2milestone	
Network detection prepare$U.netcard,W	
y2debug	
Hardware=%1(Xsize-X$Z		listmaph
active_driver$bfindddrivers	active-d	module&j			filterm	load&&&&&&SCR::Execute.target.bash		
sformat		
grep ^%1 /proc/modules&n7				maplistm	a,o				maplistm	7+			.ko,p		foreachmod	7,q	
y2milestone	
Loading module: %1,rSCR::Execute.target.bash		
sformat		
&/sbin/modprobe --use-blacklist %1 2>&1$v ls /sys/class/net|grep -v "^lo$"$w	SCR::Execute.target.bash_output(xexit4x
interfaces	$y			filters				splitstring				stdout
	size	,z	
y2milestone	

interfaces %1,{		foreachifc	,	
y2milestone	
 Setting link up for interface %1,SCR::Execute.target.bash		
sformat		
ip link set %1 up,	
y2error	
Error while execute %1 : %2,	
y2milestone	
Network detection prepare (end)-%9ret(54,	
y2error	
Detection already running-,	
y2milestone	

IFCONFIG1: %1SCR::Execute.target.bash_output/sbin/ifconfig$(84&5&,	
y2milestone	

IFCONFIG2: %1SCR::Execute.target.bash_output/sbin/ifconfig,	
y2milestone	
Detection start result: %1-%:(54,	
y2error	
Detection not running-&5,	
y2milestone	

IFCONFIG3: %1SCR::Execute.target.bash_output/sbin/ifconfig,	
y2milestone	
Detection stop -%;command	exeifs	ifsl	ifc	$>LC_ALL=C ip link show|grep BROADCAST|grep -v NOARP|cut -d: -f2$SCR::Execute.target.bash_output$	stdout$			filteri				splitstring			 	
(size4-$			findifname	&+			+			+			arping  -D -c2 -w3 -I -SCR::Execute.target.bash-%<command	getenthnent		(||	size	SCR::Execute.target.bash		
sformat		
grep -q %1 /etc/hosts-$4/usr/bin/getent hosts "%1" | sed "s/^[0-9.: 	]\+//g"$SCR::Execute.target.bash_output		
sformat		
$	stdout,	
y2debug	
%1& 	
(&,	
y2debug	
'%1'-

ACC SHELL 2018