#!/bin/bash# Begin of the scripts:# Load DRBL setting and functionsif[ ! -f "/usr/share/drbl/sbin/drbl-conf-functions"];thenecho"Unable to find /usr/share/drbl/sbin/drbl-conf-functions! Program terminated!"exit1fi# Below 2 replaced as stated in https://github.com/stevenshiau/clonezilla/blob/master/samples/custom-ocs-1 #./usr/share/drbl/sbin/drbl-conf-functions#./usr/share/drbl/sbin/ocs-functionsDRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"
**(line 20)**.$DRBL_SCRIPT_PATH/sbin/drbl-conf-functions
**(line 21)**./etc/drbl/drbl-ocs.conf
**(line 22)**.$DRBL_SCRIPT_PATH/sbin/ocs-functions
# load the setting for clonezilla live.
**(line 26)**[ -e /etc/ocs/ocs-live.conf ]&& ./etc/ocs/ocs-live.conf
# Load language files. For English, use "en". For Chinese, use "tw.UTF-8"
**(line 30)** ask_and_load_lang_set en_US.UTF-8
exportLANG=en_US.UTF-8
(...)
**(line 58)** .$DRBL_SCRIPT_PATH/sbin/ocs-sr -g auto -e1 auto -e2 -r -j2 -c -scr -p reboot restoredisk 2017-08-30-13-img_ReadyForFlashingTabletsImage_V3 mmcblk1
ending with clonezilla-xxx.zip
5. i've extracted this file to my USB and restarted computer
unfornunatelly i am ending up with below errors:
usr/share/drbl/sbin/custom-ocs: line 20: ./usr/share/drbl/sbin/drbl-conf-functions: no such file or directory
usr/share/drbl/sbin/custom-ocs: line 21: ./etc/drbl/drbl-ocs.conf: no such file or directory
usr/share/drbl/sbin/custom-ocs: line 22: ./usr/share/drbl/sbin/drbl-functions: no such file or directory
usr/share/drbl/sbin/custom-ocs: line 26: ./etc/ocs/ocs-live.conf: no such file or directory
usr/share/drbl/sbin/custom-ocs: line 30: ask_and_load_lang_set: command not found
usr/share/drbl/sbin/custom-ocs: line 53: ./usr/share/drbl/sbin/ocs-sr: no such file or directory
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are some extra "." in your custom-ocs, i.e.,
./usr/share/drbl/sbin/drbl-conf-functions
should be like:
/usr/share/drbl/sbin/drbl-conf-functions
Otherwise of couse it's not found.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ending with clonezilla-xxx.zip
5. i've extracted this file to my USB and restarted computer
unfornunatelly i am ending up with below errors:
usr/share/drbl/sbin/custom-ocs: line 20: ./usr/share/drbl/sbin/drbl-conf-functions: no such file or directory
usr/share/drbl/sbin/custom-ocs: line 21: ./etc/drbl/drbl-ocs.conf: no such file or directory
usr/share/drbl/sbin/custom-ocs: line 22: ./usr/share/drbl/sbin/drbl-functions: no such file or directory
usr/share/drbl/sbin/custom-ocs: line 26: ./etc/ocs/ocs-live.conf: no such file or directory
usr/share/drbl/sbin/custom-ocs: line 30: ask_and_load_lang_set: command not found
usr/share/drbl/sbin/custom-ocs: line 53: ./usr/share/drbl/sbin/ocs-sr: no such file or directory
There are some extra "." in your custom-ocs, i.e.,
./usr/share/drbl/sbin/drbl-conf-functions
should be like:
/usr/share/drbl/sbin/drbl-conf-functions
Otherwise of couse it's not found.
Steven