Create a script `dir-info.sh` that takes a directory path as input and calculates the total size of all the files in that directory and its subdirectories.
The script will output the size of the largest file, the size of the smallest file, and the average size of all the files in the directory.
The script will also output the name and size of all the files larger or equal than the average size and the name and size of all the files smaller than the average size.