# HG changeset patch # User Pascal Bellard # Date 1551165704 -3600 # Node ID 01ab2b1d9b4df6305630fa59e6edeaca80248c75 # Parent d6f110850f615f0d8d7c14541979294337d025b3 Remove ashism == diff -r d6f110850f61 -r 01ab2b1d9b4d etc/init.d/network.sh --- a/etc/init.d/network.sh Tue Feb 05 08:08:51 2019 +0100 +++ b/etc/init.d/network.sh Tue Feb 26 08:21:44 2019 +0100 @@ -14,8 +14,8 @@ # Change LXPanel Network applet settings -if [ "$1" == 'netapplet' ]; then - if [ "$WIFI" == 'yes' ]; then +if [ "$1" = 'netapplet' ]; then + if [ "$WIFI" = 'yes' ]; then interface="$WIFI_INTERFACE" else interface="$INTERFACE" @@ -109,7 +109,7 @@ # Reconnect to the given network reconnect_wifi_network() { - if [ "$WIFI" == 'yes' ]; then + if [ "$WIFI" = 'yes' ]; then # Wpa_supplicant will auto-connect to the first network # notwithstanding to priority when scan_ssid=1 current_ssid="$(wpa_cli list_networks 2>/dev/null | fgrep '[CURRENT]' | cut -f2)" @@ -140,7 +140,7 @@ # ESSID="any" will work and the interface is autodetected. wifi() { - if [ "$WIFI" == 'yes' ]; then + if [ "$WIFI" = 'yes' ]; then ifconfig $INTERFACE down # Confirm if $WIFI_INTERFACE is the Wi-Fi interface @@ -170,7 +170,7 @@ [ "$WIFI_ESSID" != 'any' ] && remove_network 'any' # Clean all / add / change stored networks settings - if [ "$WIFI_BLANK_NETWORKS" == 'yes' ]; then + if [ "$WIFI_BLANK_NETWORKS" = 'yes' ]; then echo "Creating new $WPA_CONF" cat /etc/wpa/wpa_empty.conf > $WPA_CONF else @@ -245,7 +245,7 @@ key_mgmt=WPA-EAP IEEE8021X eap=$WIFI_EAP_METHOD EOT - if [ "$WIFI_EAP_METHOD" == 'PWD' ]; then + if [ "$WIFI_EAP_METHOD" = 'PWD' ]; then WIFI_PHASE2=''; WIFI_CA_CERT=''; WIFI_USER_CERT=''; WIFI_ANONYMOUS_IDENTITY='' fi [ -n "$WIFI_CA_CERT" ] && echo -e "\tca_cert=\"$WIFI_CA_CERT\"" @@ -286,10 +286,10 @@ # For a dynamic IP with DHCP dhcp() { - if [ "$DHCP" == 'yes' ]; then + if [ "$DHCP" = 'yes' ]; then echo "Starting udhcpc client on: $INTERFACE..." # Is wpa wireless && wpa_ctrl_open interface up? - if [ -d /var/run/wpa_supplicant ] && [ "$WIFI" == 'yes' ]; then + if [ -d /var/run/wpa_supplicant ] && [ "$WIFI" = 'yes' ]; then wpa else # fallback on udhcpc: wep, eth @@ -303,7 +303,7 @@ # For a static IP static_ip() { - if [ "$STATIC" == 'yes' ]; then + if [ "$STATIC" = 'yes' ]; then echo "Configuring static IP on $INTERFACE: $IP..." if [ -n "$BROADCAST" ]; then /sbin/ifconfig $INTERFACE $IP netmask $NETMASK broadcast $BROADCAST up diff -r d6f110850f61 -r 01ab2b1d9b4d etc/init.d/rcS --- a/etc/init.d/rcS Tue Feb 05 08:08:51 2019 +0100 +++ b/etc/init.d/rcS Tue Feb 26 08:21:44 2019 +0100 @@ -23,7 +23,7 @@ status # Trigger udev and handle hotplug events - if [ "$UDEV" == 'yes' ]; then + if [ "$UDEV" = 'yes' ]; then action 'Mounting devtmpfs filesystem on /dev' mount -t devtmpfs devtmpfs /dev status @@ -90,7 +90,7 @@ # Clean up the system and set up tmp dirs. # */run/* are tmpfs so they are cleaned up at shutdown. - if [ "$CLEAN_UP_SYSTEM" == 'yes' ]; then + if [ "$CLEAN_UP_SYSTEM" = 'yes' ]; then action 'Cleaning up the system...' rm -rf /tmp mkdir -p /tmp/.X11-unix /tmp/.ICE-unix @@ -165,7 +165,7 @@ # Call udevadm trigger to ensure /dev is fully populated now that all # modules are loaded. - if [ "$UDEV" == 'yes' ]; then + if [ "$UDEV" = 'yes' ]; then action 'Triggering udev events: --action=add' udevadm trigger --action=add status