TinyCore Linux: Support for tc 4.x

This commit is contained in:
Bernhard Ehlers
2015-10-07 09:33:56 +02:00
parent 5e9f0fcc1d
commit ccf26c11f3
8 changed files with 70 additions and 28 deletions

View File

@ -32,6 +32,6 @@ sudo chgrp staff /mnt/sda1/tce
sudo chmod 775 /mnt/sda1/tce
# base system modifications
echo -e "\nusername 'gns3', password 'gns3'\n" >> /etc/issue
echo 'etc/issue' >> /opt/.filetool.lst
echo 'etc/shadow' >> /opt/.filetool.lst
echo -e "\nusername 'gns3', password 'gns3'\n" >> /etc/issue

View File

@ -9,8 +9,10 @@ rm -rf /usr/local/tce.installed/*
# openssh (optional)
tce-load -wi openssh
echo '/usr/local/etc/init.d/openssh start' >> /opt/bootlocal.sh
[ -f /usr/local/etc/ssh/ssh_config.example ] && sudo cp -a /usr/local/etc/ssh/ssh_config.example /usr/local/etc/ssh/ssh_config
[ -f /usr/local/etc/ssh/sshd_config.example ] && sudo cp -a /usr/local/etc/ssh/sshd_config.example /usr/local/etc/ssh/sshd_config
echo 'usr/local/etc/ssh' >> /opt/.filetool.lst
echo '/usr/local/etc/init.d/openssh start' >> /opt/bootlocal.sh
tce-load -wi ipv6-`uname -r` iptables iproute2
tce-load -wi tcpdump

View File

@ -5,16 +5,16 @@ set -x
# Boot configuration
# Serial interface is secondary console, the vga console remains main console
# To change that, exchange the two 'console=' boot parameter
sudo sed -i -e '1i serial 0 38400' -e '/append loglevel/ s/$/ console=ttyS0,38400 console=tty0/' /mnt/sda1/boot/extlinux/extlinux.conf
sudo sed -i -r -e '1 i serial 0 38400' -e '/label microcore/,/append / s/(append .*)/\1 console=ttyS0,38400 console=tty0/' /mnt/sda1/boot/extlinux/extlinux.conf
# /etc/inittab
sudo sed -i -e '/tty6/attyS0::respawn:/sbin/getty 38400 ttyS0 xterm' /etc/inittab
sudo sed -i -e '/tty6/ a ttyS0::respawn:/sbin/getty 38400 ttyS0 xterm' /etc/inittab
# /etc/securetty
sudo sed -i -e 's/^# *ttyS0/ttyS0/' /etc/securetty
# reload initab on startup
sudo sed -i -e '/^\/opt\/bootlocal/ i' -e '/^\/opt\/bootlocal/ i# reload inittab' -e '/^\/opt\/bootlocal/ i kill -HUP 1' -e '/^\/opt\/bootlocal/ i' /opt/bootsync.sh
# reload inittab on startup
sudo sed -i -e '/^\/opt\/bootlocal/ i' -e '/^\/opt\/bootlocal/ i # reload inittab' -e '/^\/opt\/bootlocal/ i kill -HUP 1' -e '/^\/opt\/bootlocal/ i' /opt/bootsync.sh
# add modified files to backup list
echo 'etc/inittab' >> /opt/.filetool.lst