Bladeren bron

Merge pull request #55 from iamarcel/fix-command-location

Dyamically get the `freedombone` command
Bob Mottram 9 jaren geleden
bovenliggende
commit
ec83f3c171
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      src/freedombone-prep

+ 1
- 1
src/freedombone-prep Bestand weergeven

@@ -243,7 +243,7 @@ $SUDO sed -i "s/nameserver.*/nameserver $NAMESERVER1/g" $MICROSD_MOUNT_POINT/$RO
243 243
 $SUDO sed -i "/nameserver $NAMESERVER1/a\nameserver $NAMESERVER2" $MICROSD_MOUNT_POINT/$ROOTFS/etc/resolv.conf
244 244
 
245 245
 # copy the commands to the card
246
-$SUDO cp -f /usr/local/bin/freedombone* $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/
246
+$SUDO cp -f $(which freedombone)* $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/
247 247
 if [ ! -f $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/freedombone ]; then
248 248
     echo 'There was a problem with writing freedombone commands to the SD card'
249 249
     exit 8736