浏览代码

Dyamically get the `freedombone` command

Marcel Samyn 10 年前
父节点
当前提交
3ca984e13e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-prep

+ 1
- 1
src/freedombone-prep 查看文件

243
 $SUDO sed -i "/nameserver $NAMESERVER1/a\nameserver $NAMESERVER2" $MICROSD_MOUNT_POINT/$ROOTFS/etc/resolv.conf
243
 $SUDO sed -i "/nameserver $NAMESERVER1/a\nameserver $NAMESERVER2" $MICROSD_MOUNT_POINT/$ROOTFS/etc/resolv.conf
244
 
244
 
245
 # copy the commands to the card
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
 if [ ! -f $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/freedombone ]; then
247
 if [ ! -f $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/freedombone ]; then
248
     echo 'There was a problem with writing freedombone commands to the SD card'
248
     echo 'There was a problem with writing freedombone commands to the SD card'
249
     exit 8736
249
     exit 8736