Skip to content

Commit

Permalink
Update boot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Jan 18, 2024
1 parent f5d6b03 commit 710485c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rootfilesystem/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
if lj_mount.label != desired_label:
remount("/", False)
lj_mount.label = desired_label
print("Reset filesystem label.\n")
print("Reset filesystem label.")
remount("/", True)

if fetch("usb_msc_available", "LJINUX"):
print("This board supports USB filesystem enumeration.")
if fetch("usb_msc_enabled", "LJINUX"):
print("The USB filesystem is enabled.\nLjinux will access root Read-Only!\n")
print("The USB filesystem is enabled.\nLjinux will access root Read-Only!")
else:
disable_usb_drive()
print("The USB filesystem is disabled.\nLjinux will operate normally.\n")
print("The USB filesystem is disabled.\nLjinux will operate normally.")
else:
print("This board does not support USB filesystem enumeration.\n")
print("This board does not support USB filesystem enumeration.")


if fetch("usb_hid_available", "LJINUX"):
Expand All @@ -35,12 +35,12 @@
print("This board supports HID enumeration.")

if fetch("usb_hid_enabled", "LJINUX"):
print("HID Enabled.\n")
print("HID Enabled.")
else:
usb_hid.disable()
print("HID Disabled.\n")
print("HID Disabled.")
else:
print("This board does not support HID enumeration.\n")
print("This board does not support HID enumeration.")

if fetch("usb_midi_available", "LJINUX"):
import usb_midi
Expand Down

0 comments on commit 710485c

Please sign in to comment.