gns3-registry/packer/tinycore-linux/scripts/packages.sh
2015-10-07 09:33:56 +02:00

21 lines
682 B
Bash

# Add extensions
set -x
# change tcedir to harddisk
mv /etc/sysconfig/tcedir /etc/sysconfig/tcedir.bak
ln -s /mnt/sda1/tce /etc/sysconfig/tcedir
rm -rf /usr/local/tce.installed/*
# openssh (optional)
tce-load -wi openssh
[ -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
tce-load -wi iperf3