Updated init scripts

This commit is contained in:
Martijn Braam 2020-03-16 12:13:57 +01:00
parent 0021d92fae
commit a94a536815
No known key found for this signature in database
GPG Key ID: C4280ACB000B060F
2 changed files with 9 additions and 18 deletions

View File

@ -1,8 +1,7 @@
#!/bin/sh #!/bin/sh
## Init script for JumpDrive
################################################ ## Copyright (C) 2020 - postmarketOS
# Copyright (c) 2020 - Dreemurrs Embedded Labs # ## Copyright (C) 2020 - Danctl12 <danct12@disroot.org>
################################################
. /init_functions.sh . /init_functions.sh
@ -37,12 +36,6 @@ setup_usb_configfs
start_udhcpd start_udhcpd
setup_telnetd setup_telnetd
# We'll just give some new lines cuz why not. # ToDo: splash
printf "\n\n"
echo "Rescue SD has initialized!"
echo "Please connect the device to your computer."
echo
echo "* Telnet: $IP (port 23)"
loop_forever loop_forever

View File

@ -8,9 +8,9 @@ setup_usb_configfs() {
fi fi
# Default values for USB-related deviceinfo variables # Default values for USB-related deviceinfo variables
usb_idVendor="0x1F3A" usb_idVendor="0x1209" # Generic
usb_idProduct="0xEFE8" usb_idProduct="0x4201" # Random ID
usb_serialnumber="Rescue SD Boot" usb_serialnumber="Jumpdrive"
usb_rndis_function="rndis.usb0" usb_rndis_function="rndis.usb0"
usb_mass_storage_function="mass_storage.0" usb_mass_storage_function="mass_storage.0"
@ -45,8 +45,7 @@ setup_usb_configfs() {
# Make sure there is a mmcblk2 (eMMC)... # Make sure there is a mmcblk2 (eMMC)...
if [ -z "$(ls /dev/mmcblk2)" ]; then if [ -z "$(ls /dev/mmcblk2)" ]; then
echo "eMMC is not found, something is horribly wrong!!" echo "/dev/mmcblk2 could not be opened, possible eMMC defect"
echo "It's probably better to make Huong Tram release a new music video."
crash_kernel crash_kernel
fi fi
@ -61,8 +60,7 @@ setup_usb_configfs() {
# Check if there's an USB Device Controller # Check if there's an USB Device Controller
if [ -z "$(ls /sys/class/udc)" ]; then if [ -z "$(ls /sys/class/udc)" ]; then
echo "No USB Device Controller available, something is horribly wrong!!" echo "No USB Device Controller available"
echo "Please let Danct12 know this."
crash_kernel crash_kernel
fi fi