Skip to content

Commit

Permalink
reduce console spam by copy operations
Browse files Browse the repository at this point in the history
  • Loading branch information
desertwitch committed Jul 25, 2023
1 parent 03f5ff1 commit 54edfd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/nut/etc/rc.d/rc.nut
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ write_config() {
mkdir $PLGPATH/ups
fi

cp -f /etc/nut/* $PLGPATH/ups
cp -f /etc/nut/* $PLGPATH/ups >/dev/null 2>&1

# update permissions
if [ -d /etc/nut ]; then
Expand Down
6 changes: 3 additions & 3 deletions source/nut/install/doinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ chmod +0755 $DOCROOT/scripts/* \
/usr/sbin/nut-notify

# copy the default
cp -nr $DOCROOT/default.cfg $BOOT/nut.cfg
cp -nr $DOCROOT/default.cfg $BOOT/nut.cfg >/dev/null 2>&1

# remove nut symlink
if [ -L /etc/nut ]; then
Expand All @@ -31,10 +31,10 @@ if [ ! -d $BOOT/ups ]; then
fi

# copy default conf files to flash drive, if no backups exist there
cp -nr $DOCROOT/nut/* $BOOT/ups
cp -nr $DOCROOT/nut/* $BOOT/ups >/dev/null 2>&1

# copy conf files from flash drive to local system, for our services to use
cp -f $BOOT/ups/* /etc/nut
cp -f $BOOT/ups/* /etc/nut >/dev/null 2>&1

# update permissions
if [ -d /etc/nut ]; then
Expand Down

0 comments on commit 54edfd3

Please sign in to comment.