mirror of https://github.com/OpenIPC/firmware.git
[no ci] Scripts: move unused scripts to legacy (#1307)
parent
b74489cec9
commit
c754970066
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
/usr/sbin/resetd &
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -19,22 +19,18 @@
|
||||||
::sysinit:/bin/mkdir -p /dev/pts /dev/shm
|
::sysinit:/bin/mkdir -p /dev/pts /dev/shm
|
||||||
::sysinit:/bin/mount -a
|
::sysinit:/bin/mount -a
|
||||||
::sysinit:/bin/mkdir -p /run/lock/subsys
|
::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 /dev/fd
|
||||||
null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
|
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/1 /dev/stdout
|
||||||
null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
|
null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
|
||||||
::sysinit:/bin/hostname -F /etc/hostname
|
::sysinit:/bin/hostname -F /etc/hostname
|
||||||
# now run any rc scripts
|
|
||||||
|
# Run rc scripts
|
||||||
::sysinit:/etc/init.d/rcS
|
::sysinit:/etc/init.d/rcS
|
||||||
|
|
||||||
# Put a getty on the serial port
|
# Put a getty on the serial port
|
||||||
console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
|
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
|
# Stuff to do before rebooting
|
||||||
::shutdown:/etc/init.d/rcK
|
::shutdown:/etc/init.d/rcK
|
||||||
# ::shutdown:/sbin/swapoff -a
|
|
||||||
::shutdown:/bin/umount -a -f
|
::shutdown:/bin/umount -a -f
|
||||||
|
|
|
@ -1,6 +1,2 @@
|
||||||
f2fs
|
|
||||||
vfat
|
vfat
|
||||||
exfat
|
exfat
|
||||||
|
|
||||||
# For XM530 SD cards
|
|
||||||
# sdio0_sd
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/tmp"
|
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=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
|
||||||
export HOME=${HOME:-/root}
|
export HOME=${HOME:-/root}
|
||||||
export TZ=$(cat /etc/TZ)
|
export TZ=$(cat /etc/TZ)
|
||||||
|
@ -20,12 +21,6 @@ if [ "$PS1" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export EDITOR='/bin/vi'
|
|
||||||
|
|
||||||
[ -x /usr/bin/arp ] || arp() {
|
|
||||||
cat /proc/net/arp
|
|
||||||
}
|
|
||||||
|
|
||||||
differ() {
|
differ() {
|
||||||
diff -rN "/rom$1" "$1"
|
diff -rN "/rom$1" "$1"
|
||||||
}
|
}
|
||||||
|
@ -81,4 +76,5 @@ show_wlan() {
|
||||||
# Source configuration files from /etc/profile.d
|
# Source configuration files from /etc/profile.d
|
||||||
for i in /etc/profile.d/*.sh; do
|
for i in /etc/profile.d/*.sh; do
|
||||||
[ -r "$i" ] && . $i
|
[ -r "$i" ] && . $i
|
||||||
done; unset i
|
done
|
||||||
|
unset i
|
||||||
|
|
|
@ -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
|
|
|
@ -7,8 +7,8 @@ date +GITHUB_VERSION="\"${GIT_BRANCH-local}+${GIT_HASH-build}, %Y-%m-%d"\" >> ${
|
||||||
echo BUILD_OPTION=${OPENIPC_VARIANT} >> ${FILE}
|
echo BUILD_OPTION=${OPENIPC_VARIANT} >> ${FILE}
|
||||||
date +TIME_STAMP=%s >> ${FILE}
|
date +TIME_STAMP=%s >> ${FILE}
|
||||||
|
|
||||||
CONF="INGENIC_OSDRV_T30=y|LIBV4L=y|MAVLINK_ROUTER=y|WIFIBROADCAST=y|WEBRTC_AUDIO_PROCESSING=y"
|
CONF="USES_GLIBC=y|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
|
if ! grep -qP ${CONF} ${BR2_CONFIG}; then
|
||||||
rm -f ${TARGET_DIR}/usr/lib/libstdc++*
|
rm -f ${TARGET_DIR}/usr/lib/libstdc++*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue