diff options
author | Christos.K <freedomrfox@gmail.com> | 2017-07-25 19:56:10 +0300 |
---|---|---|
committer | Christos.K <freedomrfox@gmail.com> | 2017-07-25 19:56:10 +0300 |
commit | a0ef80c77e9d3124b377ea90df27d91e987b59d5 (patch) | |
tree | a1cbe2f7bf59fdf5c59c54144af11c95201604ec | |
parent | Entries for script testing, will be removed to a default file (diff) | |
download | GSE-a0ef80c77e9d3124b377ea90df27d91e987b59d5.tar.gz GSE-a0ef80c77e9d3124b377ea90df27d91e987b59d5.tar.bz2 GSE-a0ef80c77e9d3124b377ea90df27d91e987b59d5.zip |
Fixed wrong cconfdir variable and included comments for the devname.info file
-rwxr-xr-x | scripts/functions/drv_interface | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/functions/drv_interface b/scripts/functions/drv_interface index 5269d20..9daf787 100755 --- a/scripts/functions/drv_interface +++ b/scripts/functions/drv_interface @@ -3,7 +3,7 @@ # # THIS SCRIPT PROVIDES A SIMPLE GUIDES CONFIGURATION FOR THE FSTAB # -CCONFDIR="$PWD" + if echo "${_flag_tty}" | grep -q 'sshd'; then LC_COLLATE="C" LC_ALL="en_US.UTF-8" @@ -26,7 +26,7 @@ fs_opt() { esac } -FS_OPTS=(BOOTFS SYS USERDATAFS) +FS_OPTS=(BOOTFS SYSFS USERDATAFS) for i in "${FS_OPTS[@]}"; do clear; fs_opt 1 @@ -254,7 +254,13 @@ for i in "${dev_fs[@]}"; do done done -echo "BOOTFS ${BOOTFS} ${_BOOTID} ${_BOOTSIZE} ${_BOOTFSTYPE}" > "${CCONFDIR}/system/devname.info" +cat >"${CCONFDIR}/system/devname.info" <<\EOF +# This file is will be automatically generated if you choose the guided fstab configuration entry +# However there is a manual entry on the submenu to aid extra needs. +# The general syntax of a line is as follows: {LABEL} {DEVID} {IDTYPE} {size{M,G}/all} {FSTYPE} +EOF + +echo "BOOTFS ${BOOTFS} ${_BOOTID} ${_BOOTSIZE} ${_BOOTFSTYPE}" >> "${CCONFDIR}/system/devname.info" echo "SYSFS ${SYSFS} ${_SYSID} ${_SYSSIZE} ${_SYSFSTYPE}" >> "${CCONFDIR}/system/devname.info" echo "USERDATAFS ${USERDATAFS} ${_USERDATAID} ${_USERDATASIZE} ${_USERDATAFSTYPE}" >> "${CCONFDIR}/system/devname.info" echo "BACKUPFS ${BACKUPFS} ${_BACKUPID} ${_BACKUPSIZE} ${_BACKUPFSTYPE}" >> "${CCONFDIR}/system/devname.info" |