use screen instead of splitvt
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 29 Jul 2009 14:22:16 +0000 (14:22 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 29 Jul 2009 14:22:16 +0000 (14:22 +0000)
(in preparation for DNS daemon which would require third split)

bin/install-debian.sh
bin/start-split.sh

index e5b8176..a313f20 100755 (executable)
@@ -1,2 +1,2 @@
-sudo apt-get install libnet-dhcp-perl libmodule-install-perl libautodie-perl syslinux splitvt
+sudo apt-get install libnet-dhcp-perl libmodule-install-perl libautodie-perl syslinux
 ln -s /usr/lib/syslinux/gpxelinux.0 tftp/
index 3b83185..8719399 100755 (executable)
@@ -1,4 +1,20 @@
 #!/bin/sh
 
-splitvt -upper "sudo ./bin/dhcpd.pl" -lower "sudo ./bin/tftpd.pl"
+source conf/.install.sh
 
+depends screen
+
+cat > /tmp/screenrc << ____
+
+autodetach on
+defscrollback 10000
+startup_message off
+
+split
+screen -t dhcpd sudo ./bin/dhcpd.pl
+focus down
+screen -t tftpd sudo ./bin/tftpd.pl
+
+____
+
+screen -c /tmp/screenrc