diff options
Diffstat (limited to 'tasks/update_chrootscripts.task.sh')
-rw-r--r-- | tasks/update_chrootscripts.task.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tasks/update_chrootscripts.task.sh b/tasks/update_chrootscripts.task.sh new file mode 100644 index 0000000..9302fae --- /dev/null +++ b/tasks/update_chrootscripts.task.sh @@ -0,0 +1,7 @@ +update_chrootscripts () { + rm -f $BROOT_BUILDROOT_PATH/root/bin/*.sh 2>&1 > /dev/null + cp ./chroot-scripts/* $BROOT_BUILDROOT_PATH/root/bin/ + chmod 700 $BROOT_BUILDROOT_PATH/root/bin/* + count=$(ls -1 $BROOT_BUILDROOT_PATH/root/bin/*.sh|wc -l) + echo " Reinstalled $count scripts" +} |