diff options
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | src/scripts/thumbdrive.sh | 16 |
2 files changed, 18 insertions, 0 deletions
| @@ -11,3 +11,5 @@ | |||
| 11 | /src/config/ | 11 | /src/config/ |
| 12 | /syslinux/ | 12 | /syslinux/ |
| 13 | /tmp/ | 13 | /tmp/ |
| 14 | /ldlinux.c32 | ||
| 15 | /ldlinux.sys | ||
diff --git a/src/scripts/thumbdrive.sh b/src/scripts/thumbdrive.sh index 2b6f683..5576ae2 100644 --- a/src/scripts/thumbdrive.sh +++ b/src/scripts/thumbdrive.sh | |||
| @@ -139,4 +139,20 @@ rsync \ | |||
| 139 | || exit 1 | 139 | || exit 1 |
| 140 | 140 | ||
| 141 | 141 | ||
| 142 | # create local git repository | ||
| 143 | if test ! -d "${SOURCE}/.git";then | ||
| 144 | exit 0 | ||
| 145 | fi | ||
| 146 | git --git-dir="${SOURCE}/${MKTEMP}/.git" init \ | ||
| 147 | && git config --file "${SOURCE}/${MKTEMP}/.git/config" core.bare true \ | ||
| 148 | && git push "${SOURCE}/${MKTEMP}/.git" master:master \ | ||
| 149 | && git config --file "${SOURCE}/${MKTEMP}/.git/config" core.bare false \ | ||
| 150 | && git --git-dir="${SOURCE}/${MKTEMP}/.git" remote add origin \ | ||
| 151 | https://github.com/syzdek/iperd.git \ | ||
| 152 | && git config --file "${SOURCE}/${MKTEMP}/.git/config" \ | ||
| 153 | branch.master.remote origin \ | ||
| 154 | && ( cd "${SOURCE}/${MKTEMP}/" && git reset; ) \ | ||
| 155 | || rm -Rf "${SOURCE}/${MKTEMP}/.git" | ||
| 156 | |||
| 157 | |||
| 142 | # end of script | 158 | # end of script |
