派装软件

root@osmc:/mnt/sdaPi/shell# cat orangepi.sh
#!/bin/bash
apt-get update
sleep 3
apt-get -y install vim
echo `blkid|grep sdb`>>/etc/fstab
vim /etc/fstab
mount -a
cp /mnt/sdaPi/pi/.bashrc /root
source /root/.bashrc
cp /mnt/sdaPi/pi/etc/vim/vimrc /etc/vim
apt-get -y install transmission-daemon
service transmission-daemon stop
cp /mnt/sdaPi/pi/etc/transmission-daemon/settings.json /etc/transmission-daemon
service transmission-daemon start
sleep 1
apt-get -y install cron
cp /mnt/sdaPi/pi/rootcrontab /var/spool/cron/crontabs/root
sleep 1
apt-get -y install nfs-kernel-server
cp /mnt/sdaPi/pi/etc/exports /etc
cp /mnt/sdaPi/pi/etc/hosts.allow /etc
apt-get -y install minidlna
cp /mnt/sdaPi/pi/etc/minidlna.conf /etc
apt-get -y install samba
apt-get -y install samba-common
cp /mnt/sdaPi/pi/etc/samba/smb.conf /etc/samba

apt-get -y install autossh

cp /mnt/sdaPi/pi/etc/rc.local /etc

sleep 1
apt-get -y install nginx
sleep 1
apt-get -y install mysql-server
sleep 1
apt-get -y install php5
sleep 1
apt-get -y install php5-mysql
sleep 1
apt-get -y install php5-fpm

sleep 1

apt-get install gpac

#cp /mnt/sdaPi/pi/etc/network/interfaces /etc/network
#cp /mnt/sdaPi/pi/etc/wpa.conf /etc

    A+
发布日期:2016年05月05日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: