Solved with xuancong84's answer on a similar question:
setsid sh -c 'exec sh </dev/ttyAMA0 >/dev/ttyAMA0 2>&1'
                
                    beyondtime 
                
                
- 121
- 1
- 10
 
                