various changes
This commit is contained in:
parent
f4daeca752
commit
627fc1914b
2 changed files with 34 additions and 5 deletions
28
.gitignore
vendored
28
.gitignore
vendored
|
@ -1,5 +1,23 @@
|
||||||
*
|
/*
|
||||||
!*/
|
!.gitignore
|
||||||
!*/etc/skel/.bashrc
|
|
||||||
!*/root/.bashrc
|
!/etc/
|
||||||
!*/usr/local/sbin/update-rootfs
|
/etc/*
|
||||||
|
|
||||||
|
!/etc/skel/
|
||||||
|
/etc/skel/*
|
||||||
|
!/etc/skel/.bashrc
|
||||||
|
|
||||||
|
!/root/
|
||||||
|
/root/*
|
||||||
|
!/root/.bashrc
|
||||||
|
|
||||||
|
!/usr/
|
||||||
|
/usr/*
|
||||||
|
|
||||||
|
!/usr/local/
|
||||||
|
/usr/local/*
|
||||||
|
|
||||||
|
!/usr/local/sbin/
|
||||||
|
/usr/local/sbin/*
|
||||||
|
!/usr/local/sbin/update-rootfs
|
||||||
|
|
11
usr/local/sbin/update-rootfs
Executable file
11
usr/local/sbin/update-rootfs
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# TODO: Check if we're actually using the rootfs git
|
||||||
|
|
||||||
|
orig_dir="$(pwd)"
|
||||||
|
cd /
|
||||||
|
|
||||||
|
git reset --hard
|
||||||
|
git pull
|
||||||
|
|
||||||
|
cd $orig_dir
|
Loading…
Add table
Add a link
Reference in a new issue