You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
305 B

  1. #!/bin/sh
  2. set -e
  3. file="$1"
  4. # add old file as comments
  5. sed 's/^/# /' < $ROOT/etc/apt/sources.list | sed 's/^# # */# /' > $file
  6. # start out with old configuration, if any
  7. if [ -e $ROOT/etc/apt/apt.conf ]; then
  8. cp -a $ROOT/etc/apt/apt.conf $ROOT/etc/apt/apt.conf.new
  9. else
  10. >$ROOT/etc/apt/apt.conf.new
  11. fi