diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2018-02-22 02:44:10 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2018-02-22 02:44:10 +0300 |
commit | b565a2cd1d34afebcc7ec9ce6e29fee080f8e6c8 (patch) | |
tree | 82d3feb9f005e4c1092d5d23c3228ed56f67bdf9 /mods | |
parent | ecc89476e66d6dce30b5ec536956a38394bb2ec6 (diff) |
Backward compatibility with old kernels
Diffstat (limited to 'mods')
-rw-r--r-- | mods/mod_hakchi/hakchi/rootfs/etc/preinit | 1 | ||||
-rw-r--r-- | mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0040_usb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/mods/mod_hakchi/hakchi/rootfs/etc/preinit b/mods/mod_hakchi/hakchi/rootfs/etc/preinit index 731ab4a8..5b9959bb 100644 --- a/mods/mod_hakchi/hakchi/rootfs/etc/preinit +++ b/mods/mod_hakchi/hakchi/rootfs/etc/preinit @@ -55,5 +55,6 @@ script_init(){ preinit(){ source_base + mount_base source_parts "$preinit.d/p????_*" } diff --git a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0040_usb b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0040_usb index 3abecd6f..6a5d60ca 100644 --- a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0040_usb +++ b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0040_usb @@ -24,6 +24,7 @@ switchToUsbHost(){ } getUsbStorageIds(){ + [ -e "/dev/bus/usb" ]|| return 1 find "/dev/bus/usb" -type c | while read device do hexdump -n 1 -s 32 "$device" -C | grep -e '^00000020 08' && echo "$device" |