mirror of https://github.com/CIRCL/Circlean
Update shell_utils
* Add copy_metadata for copying files and including their metadata - sometimes useful for copying individual files into a mounted image without using rsync. * Remove out of date install lines from prepare_rPI.shpull/61/head
parent
46ede0137a
commit
03b3d68733
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Filename: cp-metadata
|
||||||
|
|
||||||
|
myecho=echo
|
||||||
|
src_path="$1"
|
||||||
|
dst_path="$2"
|
||||||
|
|
||||||
|
find "$src_path" |
|
||||||
|
while read src_file; do
|
||||||
|
dst_file="$dst_path${src_file#$src_path}"
|
||||||
|
$myecho chmod --reference="$src_file" "$dst_file"
|
||||||
|
$myecho chown --reference="$src_file" "$dst_file"
|
||||||
|
$myecho touch --reference="$src_file" "$dst_file"
|
||||||
|
done
|
|
@ -3,15 +3,9 @@
|
||||||
# change locales to en_US.UTF-8
|
# change locales to en_US.UTF-8
|
||||||
dpkg-reconfigure locales
|
dpkg-reconfigure locales
|
||||||
|
|
||||||
sed -i "s/wheezy/jessie/" /etc/apt/sources.list
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get dist-upgrade
|
apt-get dist-upgrade
|
||||||
apt-get autoremove
|
apt-get autoremove
|
||||||
apt-get install libreoffice p7zip-full libfontforge1 timidity freepats pmount
|
|
||||||
dpkg -i pdf2htmlex*.deb
|
|
||||||
|
|
||||||
# Disable swap
|
|
||||||
dphys-swapfile uninstall
|
|
||||||
|
|
||||||
# enable rc.local
|
# enable rc.local
|
||||||
systemctl enable rc-local.service
|
systemctl enable rc-local.service
|
||||||
|
|
Loading…
Reference in New Issue