New additions.

This commit is contained in:
cyteen 2020-10-10 18:47:10 +01:00
parent 491e24b8f9
commit adaeca9e84
5 changed files with 58 additions and 0 deletions

23
020_bmaptools.sh Normal file
View File

@ -0,0 +1,23 @@
apt-get install bmap-tools
# FIXME
# create function for ''bmap-tool create' that fixes the zfs_dmu_offset_next_sync issue
#function bmapcreate() {
# echo 1 | sudo tee -a /sys/module/zfs/parameters/zfs_dmu_offset_next_sync
#
# BMAPFILE=$1
# IMAGE=$2
## test the extension to see if we need to decompress before creating the bmap
# if [ ${IMAGE:e} = 'xz']
# bmaptool create --output mobian-pinephone-20200905.img.bmap mobian-pinephone-20200905.img
# bmaptool create --output $BMAPFILE $IMAGE
#
# echo 0 | sudo tee -a /sys/module/zfs/parameters/zfs_dmu_offset_next_sync
#}
#function bmapcopy() {
# bmaptool copy --bmap $BMAPFILE $IMAGE $BLOCKDEVICE
#}

1
020_kicad.sh Normal file
View File

@ -0,0 +1 @@
apt-get -y install kicad kicad-libraries kicad-symbols kicad-footprints kicad-templates kicad-demos kicad-packages3d

Binary file not shown.

View File

@ -0,0 +1,11 @@
---
url: http://extrepo-team.pages.debian.net/extrepo-data
dist: debian
version: bullseye
# To enable repositories that host software with non-DFSG-free licenses,
# # uncomment "contrib" and/or "non-free" in the list below.
enabled_policies:
- main
# - contrib
# - non-free

View File

@ -0,0 +1,23 @@
CONFIG_FILE=./config.yaml
PATTERN1="contrib"
PATTERN2="non-free"
cat ${CONFIG_FILE}
echo "Uncomment:"
echo "PATTERN1: sed -i \"/${PATTERN1}/s/^#.//g\" ${CONFIG_FILE}"
sed -i "/${PATTERN1}/s/^#.//g" ${CONFIG_FILE} # (to uncomment)
echo "PATTERN2: sed -i \"/${PATTERN2}/s/^#.//g\" ${CONFIG_FILE}"
sed -i "/${PATTERN2}/s/^#.//g" ${CONFIG_FILE} # (to uncomment)
cat ${CONFIG_FILE}
echo "Comment:"
echo "sed -i \"/${PATTERN1}/s/^/# /g" ${CONFIG_FILE}\" # (to comment)
sed -i "/${PATTERN1}/s/^/# /g" ${CONFIG_FILE} # (to comment)
echo "sed -i \"/${PATTERN2}/s/^/# /g" ${CONFIG_FILE}\" # (to comment)
sed -i "/${PATTERN2}/s/^/# /g" ${CONFIG_FILE} # (to comment)
cat ${CONFIG_FILE}