From b581aad67da65d1067749182d587c96404b33e2d Mon Sep 17 00:00:00 2001 From: morrownr Date: Sat, 19 Nov 2022 23:25:58 -0600 Subject: [PATCH] remove unneeded files --- ARM64_RPI.sh | 27 --------------------------- ARM_RPI.sh | 29 ----------------------------- ifcfg-wlan0 | 4 ---- runwpa | 20 -------------------- wlan0dhcp | 16 ---------------- 5 files changed, 96 deletions(-) delete mode 100755 ARM64_RPI.sh delete mode 100755 ARM_RPI.sh delete mode 100644 ifcfg-wlan0 delete mode 100644 runwpa delete mode 100644 wlan0dhcp diff --git a/ARM64_RPI.sh b/ARM64_RPI.sh deleted file mode 100755 index f4b0c29..0000000 --- a/ARM64_RPI.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# -# Purpose: Change settings in the Makefile to support compiling 64 bit -# operating systems for Raspberry Pi Hardware. -# -# To make this file executable: -# -# $ chmod +x ARM64_RPI.sh -# -# To execute this file: -# -# $ ./ARM64_RPI.sh - -sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile - -sed -i 's/CONFIG_PLATFORM_ARM_RPI = y/CONFIG_PLATFORM_ARM_RPI = n/g' Makefile - -sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile -RESULT=$? - -if [[ "$RESULT" != "0" ]]; then - echo "An error occurred and Raspberry Pi OS (64 bit) support was not turned on in Makefile." - exit 1 -else - echo "Raspberry Pi OS (64 bit) support was turned on in Makefile as planned." - exit 0 -fi diff --git a/ARM_RPI.sh b/ARM_RPI.sh deleted file mode 100755 index 684eecf..0000000 --- a/ARM_RPI.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# -# Purpose: Change settings in the Makefile to support compiling 32 bit -# operating systems for Raspberry Pi Hardware. -# -# To make this file executable (if necessary): -# -# $ chmod +x ARM_RPI.sh -# -# To execute this file: -# -# $ ./ARM_RPI.sh - -# getconf LONG_BIT (need to work on this) - -sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile - -sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile -RESULT=$? - -if [[ "$RESULT" != "0" ]]; then - echo "An error occurred and Raspberry Pi OS (32 bit) support was not turned on in Makefile." - exit 1 -else - echo "Raspberry Pi OS (32 bit) support was turned on in Makefile as planned." - exit 0 -fi - -sed -i 's/CONFIG_PLATFORM_ARM64_RPI = y/CONFIG_PLATFORM_ARM64_RPI = n/g' Makefile diff --git a/ifcfg-wlan0 b/ifcfg-wlan0 deleted file mode 100644 index 20dcbec..0000000 --- a/ifcfg-wlan0 +++ /dev/null @@ -1,4 +0,0 @@ -#DHCP client -DEVICE=wlan0 -BOOTPROTO=dhcp -ONBOOT=yes \ No newline at end of file diff --git a/runwpa b/runwpa deleted file mode 100644 index f825e8b..0000000 --- a/runwpa +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -if [ "`which iwconfig`" = "" ] ; then - echo "WARNING:Wireless tool not exist!" - echo " Please install it!" - exit -else - if [ `uname -r | cut -d. -f2` -eq 4 ]; then - wpa_supplicant -D ipw -c wpa1.conf -i wlan0 - else - if [ `iwconfig -v |awk '{print $4}' | head -n 1` -lt 18 ] ; then - wpa_supplicant -D ipw -c wpa1.conf -i wlan0 - else - wpa_supplicant -D wext -c wpa1.conf -i wlan0 - fi - - fi -fi - - diff --git a/wlan0dhcp b/wlan0dhcp deleted file mode 100644 index 6043382..0000000 --- a/wlan0dhcp +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -var0=`ps aux|awk '/dhclient wlan0/'|awk '$11!="awk"{print $2}'` - -kill $var0 -cp ifcfg-wlan0 /etc/sysconfig/network-scripts/ - -dhclient wlan0 - -var1=`ifconfig wlan0 |awk '/inet/{print $2}'|awk -F: '{print $2}'` - - -rm -f /etc/sysconfig/network-scripts/ifcfg-wlan0 - -echo "get ip: $var1" -