GUF-Yocto-jethro-9.0-r7707-0
i.MX6
User Manual
4.2
Utilities
4.2.1 Garz & Fricke system configuration
The
/etc/init.d/sharedconf
script (see
[
I
4.1.8 Garz & Fricke shared configuration]
) can be used to change the
shared system configuration. For this purpose, there is a link to the script at
/usr/bin/sconfig
which can be called
without the absolute path:
root@santaro:~# sconfig
If called without any parameters, the command prints the usage:
Usage: /usr/bin/sconfig {start | list | <setting> [value]}
Call without [value] to read a setting, call with [value] to write it.
Available settings:
serialdiag
switch serial debug console on or off
dhcp
switch DHCP on or off
ip
set IP address
mask
set subnet mask
gateway
set standard network gateway
mac
set MAC address
name
set device name
serial
set serial number (affects MAC address and device name)
rotation
set display rotation
If a 2.Ethernet is present, it may be configured via serial2, mac2, etc.
If a WLAN adapter is present, it may be configured via dhcp_wlan, ip_wlan, etc.
If a WLAN AP configuration is present, it may be configured via ssid_wlan, proto_wlan
,!
and psk_wlan
If the script is called with a setting as parameter, the setting is read from the XML configuration and displayed
on the console. If additionally a value is appended, this value is written to the according setting in the XML
configuration.
The ’name’ set with sconfig is also used as hostname for the device. It defaults to GFMM<serial number>.
Example 1:
To activate DHCP on the device, type:
root@santaro:~# sconfig dhcp on
Example 2:
To deactivate DHCP and set a static IP address, type:
root@santaro:~# sconfig dhcp off
root@santaro:~# sconfig ip 192.168.1.123
Note:
The settings require a reboot to take effect.
There are some settings only available, if the corresponding XML default configuration is installed for this feature
as indicated by the help message.
Currently these features are:
Second network interface
WLAN interface
WLAN AP configuration
Please contact Garz & Fricke support if a configuration is missing though the corresponding hardware is present.
The full option list can be displayed with the
list
option of sconfig:
24