DisplayLink Forum

DisplayLink Forum (https://displaylink.org/forum/index.php)
-   Linux and Open Source (https://displaylink.org/forum/forumdisplay.php?f=29)
-   -   [bug] udev.sh - missing section for START action in main() (https://displaylink.org/forum/showthread.php?t=65834)

Artem 12-27-2017 05:32 PM

[bug] udev.sh - missing section for START action in main()
 
At install() section of displaylink-installer.sh contains:
Code:

  source udev-installer.sh
  displaylink_bootstrap_script=$COREDIR/udev.sh
  create_bootstrap_file $SYSTEMINITDAEMON $displaylink_bootstrap_script
  add_udev_rule
....
  print_help_message

  $displaylink_bootstrap_script START

main() section of udev.sh contains only:
Code:

main()
{
  action=$1
  root=$2
  device_id=$3
  devnode=$4

  if [ "$action" = "add" ]; then
    create_displaylink_symlink $root $device_id $devnode
    start_displaylink
  elif [ "$action" = "remove" ]; then
    unlink_displaylink_symlink "$root" "$device_id"
    stop_displaylink "$root"
  fi
}

Hence service is not started after installation, need manual start.
Presume main() section of udev.sh need addition:
Code:

  if [ "$action" = "START" ]; then
    start_displaylink
  fi



All times are GMT. The time now is 12:12 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.