Open oliverschmidt opened 8 years ago
I think it would be cleaner to replace
if 'vsd1' in query:
subprocess.call(['vsd', '-1', query['vsd1']])
if 'vsd2' in query:
subprocess.call(['vsd', '-2', query['vsd2']])
with
if 'vsd1' in query:
subprocess.call(['vsd', '-1', '-f', query['vsd1']])
if 'vsd2' in query:
subprocess.call(['vsd', '-2', '-f', query['vsd2']])
in order to avoid reading from stdin in the first place instead of relying on Python to make it work ;-)
The vsd script is a great addition to ADTPro. However opening a Telnet session might not be the most straight forward thing to do in every scenario. Therefore I created a simplistic web front-end for vsd. I see two primary usage scenarios:
The web front-end makes use of the web server capabilities built into the standard Python libraries. So it doesn't depend on any additional installation:
Beside using the HTML form it is as well possible to mount a disk image by specifying it right in the URL like
http://<ip addr of Raspple II/?vsd1=<disk image name to mount in drive 1>
which allows for further scenarios.The web front-end can be started together with the ADTPro server by saving it as /usr/local/bin/webvsd.py, making it executable and adding it to adtpro-start right after the call to adtpro.sh as
sudo nohup webvsd.py &> /dev/null &
.