From a94a536815cf88ce9f7168dde5f2f1f2aa2d0b90 Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Mon, 16 Mar 2020 12:13:57 +0100 Subject: [PATCH] Updated init scripts --- initramfs/init | 15 ++++----------- initramfs/init_functions.sh | 12 +++++------- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/initramfs/init b/initramfs/init index 0246b45..282a0c8 100755 --- a/initramfs/init +++ b/initramfs/init @@ -1,8 +1,7 @@ #!/bin/sh - -################################################ -# Copyright (c) 2020 - Dreemurrs Embedded Labs # -################################################ +## Init script for JumpDrive +## Copyright (C) 2020 - postmarketOS +## Copyright (C) 2020 - Danctl12 . /init_functions.sh @@ -37,12 +36,6 @@ setup_usb_configfs start_udhcpd setup_telnetd -# We'll just give some new lines cuz why not. -printf "\n\n" - -echo "Rescue SD has initialized!" -echo "Please connect the device to your computer." -echo -echo "* Telnet: $IP (port 23)" +# ToDo: splash loop_forever diff --git a/initramfs/init_functions.sh b/initramfs/init_functions.sh index ce087dd..58bf1ae 100755 --- a/initramfs/init_functions.sh +++ b/initramfs/init_functions.sh @@ -8,9 +8,9 @@ setup_usb_configfs() { fi # Default values for USB-related deviceinfo variables - usb_idVendor="0x1F3A" - usb_idProduct="0xEFE8" - usb_serialnumber="Rescue SD Boot" + usb_idVendor="0x1209" # Generic + usb_idProduct="0x4201" # Random ID + usb_serialnumber="Jumpdrive" usb_rndis_function="rndis.usb0" usb_mass_storage_function="mass_storage.0" @@ -45,8 +45,7 @@ setup_usb_configfs() { # Make sure there is a mmcblk2 (eMMC)... if [ -z "$(ls /dev/mmcblk2)" ]; then - echo "eMMC is not found, something is horribly wrong!!" - echo "It's probably better to make Huong Tram release a new music video." + echo "/dev/mmcblk2 could not be opened, possible eMMC defect" crash_kernel fi @@ -61,8 +60,7 @@ setup_usb_configfs() { # Check if there's an USB Device Controller if [ -z "$(ls /sys/class/udc)" ]; then - echo "No USB Device Controller available, something is horribly wrong!!" - echo "Please let Danct12 know this." + echo "No USB Device Controller available" crash_kernel fi