Jump to content

[Armbian build PR] - armbian-install: use consistent logfile name and align the according /usr/lib folder name


Recommended Posts

Posted

Description

Since of historical reasons script armbian-install is still creating a log file with name /var/log/nand-sata-install.log as well as using other artifacts from folder /usr/lib/nand-sata-install. I would like to align those names to comply with the original script name having been run:

  1. If run as nand-sata-install => create /var/log/nand-sata-install.log, lookup artifacts in /usr/lib/nand-sata-install
  2. If run as armbian-install => create /var/log/armbian-install.log, lookup artifacts in /usr/lib/armbian-install

To achieve 2. I did:

  1. rename folder packages/bsp/common/usr/lib/nand-sata-install -> packages/bsp/common/usr/lib/armbian-install - since this is now the most likely current one.
  2. create a symbolic link packages/bsp/common/usr/lib/nand-sata-install linking to packages/bsp/common/usr/lib/armbian-install for backward compatibility.

How Has This Been Tested?

Tested on a board (Cubietruck) installed.

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] My changes generate no new warnings

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines