summarylogtreecommitdiffstats
path: root/tftpgui.sh
blob: 4368fd1a01db0ae1b962cb848f05ac55a669edcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

_pymin=`/usr/bin/python3 --version | cut -d " " -f 2 | sed 's@\..$@@'`

if [ ! -d ~/.tftpgui ]
then
  install -vdm755 ~/.tftpgui/{logs,tftproot}
  sed "s@~@$HOME@" /etc/tftpgui.cfg >  ~/.tftpgui.cfg
  chmod 644 ~/.tftpgui.cfg 
fi

/usr/bin/authbind /usr/bin/python3 /usr/lib/python${_pymin}/site-packages/tftpgui/tftpgui.py