[no ci] Scripts: move unused scripts to legacy (#1307)

pull/1312/head
viktorxda 2024-02-10 00:22:14 +01:00 committed by GitHub
parent b74489cec9
commit c754970066
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 7 additions and 54 deletions

View File

@ -1,7 +0,0 @@
#!/bin/sh
case "$1" in
start)
/usr/sbin/resetd &
;;
esac

View File

@ -19,22 +19,18 @@
::sysinit:/bin/mkdir -p /dev/pts /dev/shm
::sysinit:/bin/mount -a
::sysinit:/bin/mkdir -p /run/lock/subsys
# ::sysinit:/sbin/swapon -a
null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
::sysinit:/bin/hostname -F /etc/hostname
# now run any rc scripts
# Run rc scripts
::sysinit:/etc/init.d/rcS
# Put a getty on the serial port
console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
# Stuff to do for the 3-finger salute
#::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting
::shutdown:/etc/init.d/rcK
# ::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -f

View File

@ -1,6 +1,2 @@
f2fs
vfat
exfat
# For XM530 SD cards
# sdio0_sd

View File

@ -1,4 +1,5 @@
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/tmp"
export EDITOR="/bin/vi"
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root}
export TZ=$(cat /etc/TZ)
@ -20,12 +21,6 @@ if [ "$PS1" ]; then
fi
fi
export EDITOR='/bin/vi'
[ -x /usr/bin/arp ] || arp() {
cat /proc/net/arp
}
differ() {
diff -rN "/rom$1" "$1"
}
@ -81,4 +76,5 @@ show_wlan() {
# Source configuration files from /etc/profile.d
for i in /etc/profile.d/*.sh; do
[ -r "$i" ] && . $i
done; unset i
done
unset i

View File

@ -1,28 +0,0 @@
#!/bin/sh
show_help() {
echo "Usage: $0 [OPTIONS]
-m Reset Majestic config.
-n Reset network config.
-h Show this help.
"
exit 0
}
reset_majestic() {
cp -f /rom/etc/majestic.yaml /etc/majestic.yaml
}
reset_network() {
cp -f /rom/etc/network/interfaces /etc/network/interfaces
}
while getopts hmn flag; do
case ${flag} in
m) reset_majestic ;;
n) reset_network ;;
h) show_help ;;
esac
done
exit 0

View File

@ -7,8 +7,8 @@ date +GITHUB_VERSION="\"${GIT_BRANCH-local}+${GIT_HASH-build}, %Y-%m-%d"\" >> ${
echo BUILD_OPTION=${OPENIPC_VARIANT} >> ${FILE}
date +TIME_STAMP=%s >> ${FILE}
CONF="INGENIC_OSDRV_T30=y|LIBV4L=y|MAVLINK_ROUTER=y|WIFIBROADCAST=y|WEBRTC_AUDIO_PROCESSING=y"
if ! grep -q "USES_GLIBC" ${BR2_CONFIG} && ! grep -qP ${CONF} ${BR2_CONFIG}; then
CONF="USES_GLIBC=y|INGENIC_OSDRV_T30=y|LIBV4L=y|MAVLINK_ROUTER=y|WIFIBROADCAST=y|WEBRTC_AUDIO_PROCESSING=y"
if ! grep -qP ${CONF} ${BR2_CONFIG}; then
rm -f ${TARGET_DIR}/usr/lib/libstdc++*
fi