diff --git a/020_bmaptools.sh b/020_bmaptools.sh new file mode 100644 index 0000000..dbe0373 --- /dev/null +++ b/020_bmaptools.sh @@ -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 +#} + diff --git a/020_kicad.sh b/020_kicad.sh new file mode 100644 index 0000000..03d752f --- /dev/null +++ b/020_kicad.sh @@ -0,0 +1 @@ +apt-get -y install kicad kicad-libraries kicad-symbols kicad-footprints kicad-templates kicad-demos kicad-packages3d diff --git a/sed_comment-uncomment_example/.config.yaml.swp b/sed_comment-uncomment_example/.config.yaml.swp new file mode 100644 index 0000000..fa32e62 Binary files /dev/null and b/sed_comment-uncomment_example/.config.yaml.swp differ diff --git a/sed_comment-uncomment_example/config.yaml b/sed_comment-uncomment_example/config.yaml new file mode 100644 index 0000000..ba391fd --- /dev/null +++ b/sed_comment-uncomment_example/config.yaml @@ -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 + diff --git a/sed_comment-uncomment_example/test-sed.sh b/sed_comment-uncomment_example/test-sed.sh new file mode 100644 index 0000000..38d97ef --- /dev/null +++ b/sed_comment-uncomment_example/test-sed.sh @@ -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}