diff --git a/shellscripte/usbrepo/create_offline_repo.sh b/shellscripte/usbrepo/create_offline_repo.sh index a50332642d6259ad1203447953f74078c5b42b34..5d8487f9adcdfb59fecac2dddcc09b2d5ffc569a 100644 --- a/shellscripte/usbrepo/create_offline_repo.sh +++ b/shellscripte/usbrepo/create_offline_repo.sh @@ -1,22 +1,15 @@ #!/bin/bash -PKG_LIST="linux-firmware-nonfree swi-prolog cowsay fish get-flash-videos gnome haskell-platform java7-jdk imagemagick rxvt-unicode moc nethack-console scrot sl tmux vim xcowsay zsh zsh-doc texmaker gimp pidgin smplayer subversion git lftp inkscape" +PKG_LIST="openssh-server linux-firmware-nonfree swi-prolog cowsay fish get-flash-videos gnome haskell-platform java7-jdk imagemagick rxvt-unicode moc nethack-console scrot sl tmux vim xcowsay zsh zsh-doc texmaker gimp pidgin smplayer subversion git lftp inkscape" DESTINATION="/isodevice" -SECTIONNAME=lipoffline -ARCHITECTURE=$1 -ARCHIVE_DESTINATION=$DESTINATION/archives -REL_DISTS_PATH=dists/main/$SECTIONNAME/binary-$ARCHITECTURE -PKG_DESTINATION=$ARCHIVE_DESTINATION/$REL_DISTS_PATH +PKG_DESTINATION=$DESTINATION/archives #begin echo "creating structure..." mkdir -p $PKG_DESTINATION/ echo "done." echo "downloading archives. this may take some time..." -wget -nc -P $PKG_DESTINATION $(apt-get -o APT::Architecture=$ARCHITECTURE install --reinstall --print-uris -qq $PKG_LIST | cut -d"'" -f2) +wget -nc -P $PKG_DESTINATION $(apt-get install --reinstall --print-uris -qq $PKG_LIST | cut -d"'" -f2) #wget -nc -P $PKG_DESTINATION $(apt-get -o APT::Architecture=$ARCHITECTURE install --reinstall --allow-unauthenticated --print-uris -qq $PKG_LIST | cut -d"'" -f2) echo "done." -echo "creating meta files..." -cd $ARCHIVE_DESTINATION -apt-ftparchive packages $REL_DISTS_PATH > $REL_DISTS_PATH/Packages -gzip $REL_DISTS_PATH/Packages -echo "done." + +#end. diff --git a/shellscripte/usbrepo/infuse_offline_repo.sh b/shellscripte/usbrepo/infuse_offline_repo.sh index 90a5020442997dc15dc56c5f50b6cce3ff9ec3a0..0d95502ae93cda39428d9d783972e6b7b79e8b7a 100644 --- a/shellscripte/usbrepo/infuse_offline_repo.sh +++ b/shellscripte/usbrepo/infuse_offline_repo.sh @@ -1,5 +1,5 @@ #!/bin/bash -PKG_LIST="cowsay fish get-flash-videos gnome haskell-platform java7-jdk imagemagick rxvt-unicode moc nethack-console scrot sl tmux vim xcowsay zsh zsh-doc texmaker gimp pidgin smplayer subversion git lftp inkscape" +PKG_LIST="openssh-server swi-prolog cowsay fish get-flash-videos gnome haskell-platform java7-jdk imagemagick rxvt-unicode moc nethack-console scrot sl tmux vim xcowsay zsh zsh-doc texmaker gimp pidgin smplayer subversion git lftp inkscape" MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [[ $UID -ne 0 ]]; then @@ -15,13 +15,13 @@ if [ -n $MPOINT ]; then MERGE_DIR=$(mktemp -d) CACHE_DIR="/var/cache/apt/archives/" - ARCH="i386" - if [ "$(uname -m)" = "x86_64" ]; then - ARCH="amd64" - fi - OVERLAY_DIR="$SOURCE_PATH/archives/dists/main/lipoffline/binary-$ARCH/" - - echo "Detected architecture $ARCH -> overlay dir is $OVERLAY_DIR" +# ARCH="i386" +# if [ "$(uname -m)" = "x86_64" ]; then +# ARCH="amd64" +# fi +# OVERLAY_DIR="$SOURCE_PATH/archives/dists/main/lipoffline/binary-amd64/" + OVERLAY_DIR="$SOURCE_PATH/archives/" + echo "-> overlay dir is $OVERLAY_DIR" # test if there is already an overlayfs at CACHE_DIR if [ "$(stat --format %m "$CACHE_DIR")" = "${CACHE_DIR%/}" ] @@ -38,7 +38,7 @@ else echo "No stick, no repo; good luck." fi -apt-get install $APT_OPTIONS $PKG_LIST #exec lip install script here? +apt-get install $PKG_LIST #exec lip install script here? #end;