]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.usb
Remove the function keyword which is a bashism
[people/stevee/network.git] / src / functions / functions.usb
index 2c6cc00e12328fb55b0758cc42f30af231b98778..47268e5ef50cbda81ab5a7cff82c15c2e914ff66 100644 (file)
@@ -19,7 +19,7 @@
 #                                                                             #
 ###############################################################################
 
-function usb_device_find_by_tty() {
+usb_device_find_by_tty() {
        local tty="${1}"
        assert isset tty
 
@@ -35,7 +35,7 @@ function usb_device_find_by_tty() {
        return ${EXIT_OK}
 }
 
-function usb_device_list_interfaces() {
+usb_device_list_interfaces() {
        local path="${1}"
        assert [ -d "${path}" ]
 
@@ -48,14 +48,14 @@ function usb_device_list_interfaces() {
        return ${EXIT_OK}
 }
 
-function usb_device_get_interface_type() {
+usb_device_get_interface_type() {
        local interface="${1}"
        assert isset interface
 
        fread "${interface}/type"
 }
 
-function usb_device_has_interface_type_interrupt() {
+usb_device_has_interface_type_interrupt() {
        local device="${1}"
        assert isset device